mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
14 lines
312 B
Diff
14 lines
312 B
Diff
- // MIR for `optimize_true` before GVN
|
|
+ // MIR for `optimize_true` after GVN
|
|
|
|
fn optimize_true() -> bool {
|
|
let mut _0: bool;
|
|
|
|
bb0: {
|
|
- _0 = Eq(const optimize_true::<T>::{constant#0}, const optimize_true::<T>::{constant#1});
|
|
+ _0 = const true;
|
|
return;
|
|
}
|
|
}
|
|
|