fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.6 KiB27 linesraw
1- // MIR for `arg_src` before CopyPropagation
2+ // MIR for `arg_src` after CopyPropagation
3  
4  fn arg_src(_1: i32) -> i32 {
5      debug x => _1;                       // in scope 0 at $DIR/copy_propagation_arg.rs:27:12: 27:17
6      let mut _0: i32;                     // return place in scope 0 at $DIR/copy_propagation_arg.rs:27:27: 27:30
7      let _2: i32;                         // in scope 0 at $DIR/copy_propagation_arg.rs:28:9: 28:10
8      scope 1 {
9          debug y => _2;                   // in scope 1 at $DIR/copy_propagation_arg.rs:28:9: 28:10
10      }
11  
12      bb0: {
13          StorageLive(_2);                 // bb0[0]: scope 0 at $DIR/copy_propagation_arg.rs:28:9: 28:10
14          _2 = _1;                         // bb0[1]: scope 0 at $DIR/copy_propagation_arg.rs:28:13: 28:14
15          _1 = const 123i32;               // bb0[2]: scope 1 at $DIR/copy_propagation_arg.rs:29:5: 29:12
16                                           // ty::Const
17                                           // + ty: i32
18                                           // + val: Value(Scalar(0x0000007b))
19                                           // mir::Constant
20                                           // + span: $DIR/copy_propagation_arg.rs:29:5: 29:12
21                                           // + literal: Const { ty: i32, val: Value(Scalar(0x0000007b)) }
22          _0 = _2;                         // bb0[3]: scope 1 at $DIR/copy_propagation_arg.rs:30:5: 30:6
23          StorageDead(_2);                 // bb0[4]: scope 0 at $DIR/copy_propagation_arg.rs:31:1: 31:2
24          return;                          // bb0[5]: scope 0 at $DIR/copy_propagation_arg.rs:31:2: 31:2
25      }
26  }
27