about summary refs log tree commit diff
path: root/tests/mir-opt/dest-prop
AgeCommit message (Collapse)AuthorLines
2025-09-16Enable DestinationPropagation by default.Camille GILLOT-0/+148
2025-09-13Mark reads in statements to avoid overlapping assingments.Camille Gillot-14/+12
2025-09-13Add test.Camille Gillot-0/+135
2025-09-07Unify a source with all possible destinations.Camille Gillot-32/+34
2025-09-07Reimplement DestinationPropagation according to live ranges.Camille GILLOT-18/+14
2025-04-03Invalid dereferences for all non-local mutationsdianqk-14/+6
2024-10-19Emit error on `skip-filecheck` test containing filecheck directivesclubby789-2/+1
2024-08-18Bless *all* the mir-opt testsScott McMurray-38/+38
2024-08-18Update mir-opt filechecksScott McMurray-6/+6
2024-07-13Rollup merge of #122300 - CastilloDel:master, r=cjgillotJubilee-6/+48
Add FileCheck annotations to mir-opt/dest-prop tests Part of https://github.com/rust-lang/rust/issues/116971, adds FileCheck annotations to MIR-opt tests in tests/mir-opt/dest-prop. I would like some feedback. Also, I don't know how to approach `union.rs`. I couldn't figure out what it is testing. r? cjgillot
2024-06-26Acknowledge commentsCastilloDel-1/+6
2024-06-10Add `SingleUseConsts` mir-opt passScott McMurray-2/+2
2024-05-31Revert "Auto merge of #115105 - cjgillot:dest-prop-default, r=oli-obk"Camille GILLOT-143/+2
This reverts commit cfb730450f847bb622243eaaab15e77e58d91767, reversing changes made to 91c0823ee63e793d990bb9fed898dc95b5d6db51.
2024-05-29Enable DestinationPropagation by default.Camille GILLOT-2/+143
2024-04-20mir-opt tests: rename unit-test -> test-mir-passRalf Jung-6/+6
2024-04-18At debuginfo=0, don't inline debuginfo when inliningScott McMurray-1/+1
2024-04-14Run filecheck on dest-prop/simple.rsCastilloDel-1/+4
2024-04-14Run filecheck on dest-prop/dead_stores_79191.rs and dead_stores_better.rsCastilloDel-2/+14
2024-04-14Run filecheck on dest-prop/cycle.rsCastilloDel-1/+4
2024-04-14Run filecheck on dest-prop/copy_propagation.rsCastilloDel-1/+17
2024-04-14Run filecheck on dest-prop/branch.rsCastilloDel-1/+4
2024-04-03Remove MIR unsafe checkMatthew Jasper-8/+4
This also remove safety information from MIR.
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-8/+8
2024-01-11Sandwich MIR optimizations between DSE.Camille GILLOT-6/+14
2024-01-05rustc_mir_transform: Make DestinationPropagation stable for queriesMartin Nordholts-18/+18
By using FxIndexMap instead of FxHashMap, so that the order of visiting of locals is deterministic. We also need to bless copy_propagation_arg.foo.DestinationPropagation.panic*.diff. Do not review the diff of the diff. Instead look at the diff file before and after this commit. Both before and after this commit, 3 statements are replaced with nop. It's just that due to change in ordering, different statements are replaced. But the net result is the same.
2024-01-04Migrate memory overlap check from validator to lintTomasz Miąsko-184/+0
The check attempts to identify potential undefined behaviour, rather than whether MIR is well-formed. It belongs in the lint not validator.
2023-12-24Replace legacy ConstProp by GVN.Camille GILLOT-23/+35
2023-10-19Allow to run filecheck in mir-opt tests.Camille GILLOT-0/+8
2023-10-17Automatically enable cross-crate inlining for small functionsBen Kimock-28/+10
2023-10-06Preserve DebugInfo in DeadStoreElimination.Camille GILLOT-6/+12
2023-06-23Bless testsGary Guo-19/+19
2023-06-15Remove comments from mir-opt MIR dumpsBen Kimock-632/+560
2023-06-12bless mir-optPietro Albini-0/+495
To reproduce the changes in this commit locally: - Run `./x test tidy` and remove all the output files not associated with a test file anymore, as reported by tidy. - Run `./x test tests/mir-opt --bless` to generate the new outputs.
2023-06-12properly mark tests that require panic=abortPietro Albini-8/+8
2023-04-06Ignore many tests on wasm32Gary Guo-13/+21
2023-01-11Move /src/test to /testsAlbert Larsan-0/+663