| - // MIR for `f` before GVN | |
| + // MIR for `f` after GVN | |
| fn f(_1: u32) -> () { | |
| let mut _0: (); | |
| let mut _2: S; | |
| let mut _3: S; | |
| bb0: { | |
| - StorageLive(_2); | |
| + nop; | |
| _2 = S(copy _1, const 2_u32); | |
| StorageLive(_3); | |
| - _3 = S(copy _1, const 2_u32); | |
| + _3 = copy _2; | |
| StorageDead(_3); | |
| - StorageDead(_2); | |
| + nop; | |
| return; | |
| } | |
| } | |