rust/tests/mir-opt/dest-prop/copy_propagation_arg.foo.DestinationPropagation.diff

33 lines
2.1 KiB
Diff
Raw Normal View History

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