about summary refs log tree commit diff
path: root/src/test/mir-opt/simplify_try.rs
AgeCommit message (Collapse)AuthorLines
2022-09-01Simplify MIR opt testsJakob Degen-30/+0
This commit removes many cases of MIR opt tests emitting `.diff`s for more than one pass. These tests cannot be `unit-test`s, and so they are easy to break, and they also provide little value due to having excessively strong opinions over *how* a piece of code should be optimized. Where reasonable, we instead add separate test files that only emit the `PreCodegen.after` MIR for code where we want to track what the result of the net result of the optimization pipeline's output is.
2021-05-18No matter how trivial the change, tidy always finds a way to complain...Scott McMurray-2/+2
2021-05-18Mention the issue number for the new mir-opt in the FIXMEs scottmcm-1/+1
Thanks for the suggestions, lcnr! Co-authored-by: lcnr <rust@lcnr.de>
2021-05-09PR feedbackScott McMurray-4/+4
2021-05-06mir-opt & codegen test updatesScott McMurray-1/+17
`SimplifyArm` and such are currently in `-Zunsound-mir-opts` and thus weren't running by default, so having something like them for the new desugar shouldn't be necessary for switching.
2020-10-01Disable the SimplifyArmIdentity mir-optWesley Wiser-0/+1
The optimization still has some bugs that need to be worked out such as #77359. We can try re-enabling this again after the known issues are resolved.
2020-09-18simplify_try: clean up testJonas Schievink-2/+1
2020-09-18simplify_try: print dest_prop diff and blessJonas Schievink-0/+2
The new diff is to convince me that this is correct and nothing funky is going on.
2020-07-29add crate name to mir dumpsXavier Denis-3/+3
2020-04-07--bless all mir-opt tests.Ana-Maria Mihalache-207/+4
2020-04-02Remove unused discriminant reads from MIR bodiesWesley Wiser-9/+7
Allow the `SimplifyLocals` pass to remove reads of discriminants if the read is never used.
2020-02-01Update existing tests for or-patternsMatthew Jasper-20/+20
2020-01-14Add unreachable propagation mir optimization passKonstantinos Triantafyllou-16/+10
2019-11-27rustc: move debug info from LocalDecl and UpvarDecl into a dedicated ↵Eduard-Mihai Burtescu-0/+30
VarDebugInfo.
2019-11-21Introduce MIR optimizations for simplifying `x?` on `Result`s.Mazdak Farrokhzad-0/+193
This optimization depends on inlining for the identity conversions introduced by the lowering of the `?`. To take advantage of `SimplifyArmIdentity`, `-Z mir-opt-level=2` is required because that triggers the inlining MIR optimization.