2020-10-16 19:25:31 -05:00
|
|
|
- // MIR for `bar` before DestinationPropagation
|
|
|
|
+ // MIR for `bar` after DestinationPropagation
|
2020-04-02 16:09:01 -05:00
|
|
|
|
|
|
|
fn bar(_1: u8) -> () {
|
2022-04-24 16:34:24 -05:00
|
|
|
debug x => _1; // in scope 0 at $DIR/copy_propagation_arg.rs:+0:8: +0:13
|
2022-07-27 13:47:42 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/copy_propagation_arg.rs:+0:19: +0:19
|
|
|
|
let _2: u8; // in scope 0 at $DIR/copy_propagation_arg.rs:+1:5: +1:13
|
|
|
|
let mut _3: u8; // in scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
|
2020-04-02 16:09:01 -05:00
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/copy_propagation_arg.rs:+1:5: +1:13
|
2022-04-24 16:34:24 -05:00
|
|
|
- StorageLive(_3); // scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
|
|
|
|
- _3 = _1; // scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
|
|
|
|
- _2 = dummy(move _3) -> bb1; // scope 0 at $DIR/copy_propagation_arg.rs:+1:5: +1:13
|
|
|
|
+ nop; // scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
|
|
|
|
+ nop; // scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
|
|
|
|
+ _2 = dummy(move _1) -> bb1; // scope 0 at $DIR/copy_propagation_arg.rs:+1:5: +1:13
|
2020-04-02 16:09:01 -05:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/copy_propagation_arg.rs:16:5: 16:10
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn(u8) -> u8 {dummy}, val: Value(<ZST>) }
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-04-24 16:34:24 -05:00
|
|
|
- StorageDead(_3); // scope 0 at $DIR/copy_propagation_arg.rs:+1:12: +1:13
|
|
|
|
+ nop; // scope 0 at $DIR/copy_propagation_arg.rs:+1:12: +1:13
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/copy_propagation_arg.rs:+1:13: +1:14
|
2022-04-24 16:34:24 -05:00
|
|
|
_1 = const 5_u8; // scope 0 at $DIR/copy_propagation_arg.rs:+2:5: +2:10
|
|
|
|
_0 = const (); // scope 0 at $DIR/copy_propagation_arg.rs:+0:19: +3:2
|
2022-07-27 13:47:42 -05:00
|
|
|
return; // scope 0 at $DIR/copy_propagation_arg.rs:+3:2: +3:2
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|