6b56603e35
New mir-opt pass to simplify gotos with const values (reopening #77486) Reopening PR #77486 Fixes #77355 This pass optimizes the following sequence ```rust bb2: { _2 = const true; goto -> bb3; } bb3: { switchInt(_2) -> [false: bb4, otherwise: bb5]; } ``` into ```rust bb2: { _2 = const true; goto -> bb5; } ``` |
||
---|---|---|
.. | ||
borrow_check | ||
const_eval | ||
dataflow | ||
interpret | ||
monomorphize | ||
transform | ||
util | ||
lib.rs | ||
shim.rs |