mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
31bad13f82
It was introduced 4 years ago in a1d0266878
to improve LLVM
optimization time. Measurements today indicate it is no longer needed.
107 lines
2.0 KiB
Rust
107 lines
2.0 KiB
Rust
// MIR for `main` after SimplifyCfg-initial
|
|
|
|
fn main() -> () {
|
|
let mut _0: ();
|
|
let _1: i32;
|
|
let _3: i32;
|
|
let mut _4: bool;
|
|
let mut _5: bool;
|
|
let mut _6: bool;
|
|
let mut _7: bool;
|
|
let mut _8: &i32;
|
|
let mut _9: bool;
|
|
scope 1 {
|
|
debug x => _1;
|
|
let _2: bool;
|
|
scope 2 {
|
|
debug b => _2;
|
|
}
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
_1 = const 3_i32;
|
|
FakeRead(ForLet(None), _1);
|
|
StorageLive(_2);
|
|
_2 = const true;
|
|
FakeRead(ForLet(None), _2);
|
|
StorageLive(_3);
|
|
PlaceMention(_1);
|
|
_6 = Le(const 0_i32, _1);
|
|
switchInt(move _6) -> [0: bb3, otherwise: bb8];
|
|
}
|
|
|
|
bb1: {
|
|
falseEdge -> [real: bb9, imaginary: bb4];
|
|
}
|
|
|
|
bb2: {
|
|
_3 = const 3_i32;
|
|
goto -> bb14;
|
|
}
|
|
|
|
bb3: {
|
|
_4 = Le(const 10_i32, _1);
|
|
switchInt(move _4) -> [0: bb5, otherwise: bb7];
|
|
}
|
|
|
|
bb4: {
|
|
falseEdge -> [real: bb12, imaginary: bb6];
|
|
}
|
|
|
|
bb5: {
|
|
switchInt(_1) -> [4294967295: bb6, otherwise: bb2];
|
|
}
|
|
|
|
bb6: {
|
|
falseEdge -> [real: bb13, imaginary: bb2];
|
|
}
|
|
|
|
bb7: {
|
|
_5 = Le(_1, const 20_i32);
|
|
switchInt(move _5) -> [0: bb5, otherwise: bb4];
|
|
}
|
|
|
|
bb8: {
|
|
_7 = Lt(_1, const 10_i32);
|
|
switchInt(move _7) -> [0: bb3, otherwise: bb1];
|
|
}
|
|
|
|
bb9: {
|
|
_8 = &fake _1;
|
|
StorageLive(_9);
|
|
_9 = _2;
|
|
switchInt(move _9) -> [0: bb11, otherwise: bb10];
|
|
}
|
|
|
|
bb10: {
|
|
StorageDead(_9);
|
|
FakeRead(ForMatchGuard, _8);
|
|
_3 = const 0_i32;
|
|
goto -> bb14;
|
|
}
|
|
|
|
bb11: {
|
|
StorageDead(_9);
|
|
falseEdge -> [real: bb2, imaginary: bb4];
|
|
}
|
|
|
|
bb12: {
|
|
_3 = const 1_i32;
|
|
goto -> bb14;
|
|
}
|
|
|
|
bb13: {
|
|
_3 = const 2_i32;
|
|
goto -> bb14;
|
|
}
|
|
|
|
bb14: {
|
|
StorageDead(_3);
|
|
_0 = const ();
|
|
StorageDead(_2);
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
}
|