about summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-2473/+0
2022-12-25Remove Nop in simplify_locals.Camille GILLOT-28/+0
It's cheap and does not change anything.
2022-12-25Move SimplifyLocals before ConstProp.Camille GILLOT-134/+101
2022-12-25Make tests unit.Camille GILLOT-5/+7
2022-12-19Disable `NormalizeArrayLen`Jakob Degen-10/+4
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-11/+11
2022-11-15Flatten aggregates into locals.Camille GILLOT-21/+265
2022-11-02Ban dashes in miropt test file namesJakob Degen-50/+50
2022-10-06Remove `mir::CastKind::Misc`ouz-a-3/+3
2022-09-14address review againb-naber-5/+4
2022-09-13rebaseb-naber-10/+10
2022-08-27remove an ineffective check in const_propRalf Jung-1/+2
2022-08-23./x.py test --blessTomasz Miąsko-4/+0
2022-08-22Rollup merge of #99770 - Nilstrieb:mir-pass-unit-test, r=oli-obkDylan DPC-38/+60
Make some const prop mir-opt tests `unit-test`s Most of these have no or only tiny diffs beyond line numbers being changed (would it make sense to not have line numbers in mir-opt tests?). Some things changed a bit, but I think it should all be fine, not sure though.
2022-08-12make some const prop tests unit-testNilstrieb-38/+60
2022-08-06./x.py test --blessTomasz Miąsko-2/+0
2022-07-28bless mir opt testsNilstrieb-1110/+1110
2022-07-09tweak names and output and blessRalf Jung-14/+14
2022-06-21Auto merge of #95576 - DrMeepster:box_erasure, r=oli-obkbors-2/+12
Remove dereferencing of Box from codegen Through #94043, #94414, #94873, and #95328, I've been fixing issues caused by Box being treated like a pointer when it is not a pointer. However, these PRs just introduced special cases for Box. This PR removes those special cases and instead transforms a deref of Box into a deref of the pointer it contains. Hopefully, this is the end of the Box<T, A> ICEs.
2022-06-15remove box derefs from codgenDrMeepster-2/+12
2022-06-14Only create scopes for if letXavier Denis-21/+19
2022-06-10Actually fixXavier Denis-8/+12
2022-06-10Revert "More minimal changes"Xavier Denis-9/+11
This reverts commit fe0dedcb06947317d41a8570b7fff7f8690dcbff.
2022-06-10More minimal changesXavier Denis-11/+9
2022-06-10Fix `SourceScope` for `if let` bindings.Xavier Denis-9/+11
2022-06-02add cast kind of from_exposed_addr (int-to-ptr casts)Ralf Jung-1/+1
2022-06-01rename PointerAddress → PointerExposeAddressRalf Jung-2/+2
2022-05-31Add a pointer to address cast kindTomasz Miąsko-2/+2
A pointer to address cast are often special-cased. Introduce a dedicated cast kind to make them easy distinguishable.
2022-05-24Fix/bless tests broken by DSEJakob Degen-6/+0
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-1/+1
2022-05-06bless mir-optRalf Jung-1/+1
2022-04-11Fix tests broken by deaggregation changeJakob Degen-0/+16
2022-04-05mir-interpret now treats unions as non-immediate, even if they have scalar ↵Oli Scherer-40/+54
layout, allowing partially initializing them
2022-02-22change `mir::Constant` in mir dumpslcnr-63/+14
2022-02-21Rollup merge of #94156 - tmiasko:pp-str, r=petrochenkovMatthias Krüger-32/+46
Gracefully handle non-UTF-8 string slices when pretty printing Fixes #78520.
2022-02-20Revert "Auto merge of #93800 - b-naber:static-initializers-mir-val, r=oli-obk"Mark Rousskov-0/+9
This reverts commit a240ccd81c74c105b6f5fe84c46f8d36edb7e306, reversing changes made to 393fdc10483da930cdbb00eabc3635030d2e776f. This PR was likely responsible for a relatively large regression in dist-x86_64-msvc-alt builder times, from approximately 1.7 to 2.8 hours, bringing that builder into the pool of the slowest builders we currently have. This seems to be limited to the alt builder due to needing parallel-compiler enabled, likely leading to slow LLVM compilation for some reason.
2022-02-20Gracefully handle non-UTF-8 string slices when pretty printingTomasz Miąsko-32/+46
2022-02-19Fix pretty printing of enums without variantsTomasz Miąsko-65/+71
92d20c4aaddea9507f8ad37fe37c551219153bbf removed no-variants special case from try_destructure_const with expectation that this case would be handled gracefully when read_discriminant returns an error. Alas in that case read_discriminant succeeds while returning a non-existing variant, so the special case is still necessary.
2022-02-17Fix ScalarInt to char conversionTomasz Miąsko-18/+38
to avoid panic for invalid Unicode scalar values
2022-02-16Rollup merge of #94020 - tmiasko:pp, r=oli-obkMatthias Krüger-0/+72
Support pretty printing of invalid constants Make it possible to pretty print invalid constants by introducing a fallible variant of `destructure_const` and falling back to debug formatting when it fails. Closes #93688.
2022-02-16Support pretty printing of invalid constantsTomasz Miąsko-0/+72
Make it possible to pretty print invalid constants by introducing a fallible variant of `destructure_const` and falling back to debug formatting when it fails.
2022-02-15bless mir-opt testsb-naber-0/+8
2022-02-15bless testsb-naber-17/+0
2022-01-21Override rustc version in ui and mir-opt tests to get stable hashesThe 8472-9/+9
Building a dozen separate regexps for each test in compiletest consumes significant amounts of CPU cycles. Using `RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER` stabilizes hashes calcuated for the individual tests so no test-dependent normalization is needed. Hashes for the standard library still change so some normalizations are still needed.
2022-01-15initial revertEllen-9/+9
2021-12-13Include rustc version in `rustc_span::StableCrateId`pierwill-9/+9
Normalize symbol hashes in compiletest. Remove DefId sorting
2021-11-30Update MIR opt tests with new nameDylan MacKenzie-3/+3
2021-10-06run remaining testsAlexander-4/+10
2021-09-25Bless testsGary Guo-9/+26
2021-09-02Bless 32bit MIR opt testsMatthew Jasper-6/+6