| Age | Commit message (Collapse) | Author | Lines |
|
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.
|
|
|
|
Thanks for the suggestions, lcnr!
Co-authored-by: lcnr <rust@lcnr.de>
|
|
|
|
`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.
|
|
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.
|
|
|
|
The new diff is to convince me that this is correct and nothing funky
is going on.
|
|
|
|
|
|
Allow the `SimplifyLocals` pass to remove reads of discriminants if the
read is never used.
|
|
|
|
|
|
VarDebugInfo.
|
|
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.
|