Camille GILLOT
4fe51365d7
Use param_env_reveal_all_normalized in MIR opts.
2023-04-23 10:04:41 +00:00
miguelraz
6f29a3c980
nit: consistent naming for SimplifyConstCondition
2023-04-21 15:45:25 -06:00
miguelraz
fc27ae14f6
refactor SimlifyCfg and friends - no globals, just enums
2023-04-18 12:30:00 -06:00
Jakob Degen
9fb8da8f8f
Remove unneeded field from SwitchTargets
2022-12-09 04:53:10 -08:00
Oli Scherer
66797fa54f
Remove needless Cow
2022-12-01 08:38:47 +00:00
bors
0fb1c371d4
Auto merge of #91279 - scottmcm:small-refactor, r=nagisa
...
Small mir-opt refactor
Hopefully-non-controversial changes from some not-ready-yet work that I'd figured I'd submit on their own.
2021-12-06 13:04:18 +00:00
Dylan MacKenzie
bb27b05104
Separate RemoveFalseEdges
from SimplifyBranches
...
Otherwise dataflow state will propagate along false edges and cause
things to be marked as maybe init unnecessarily. These should be
separate, since `SimplifyBranches` also makes `if true {} else {}` into
a `goto`, which means we wouldn't lint anything in the `else` block.
2021-11-30 17:14:48 -08:00
Scott McMurray
b215a32af3
Small mir-opt refactor
...
Hopefully-non-controversial changes from some not-ready-yet work that I'd figured I'd submit on their own.
2021-11-26 18:18:14 -08:00
Camille GILLOT
bba4be681d
Move rustc_mir::transform to rustc_mir_transform.
2021-09-07 00:43:14 +02:00