summary refs log tree commit diff
path: root/src/test/mir-opt/copy_propagation_arg.baz.CopyPropagation.diff
blob: b20003bd7c67ec7cdcae252d9c90e14617ceb717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- // MIR for `baz` before CopyPropagation
+ // MIR for `baz` after CopyPropagation
  
  fn baz(_1: i32) -> () {
      debug x => _1;                       // in scope 0 at $DIR/copy_propagation_arg.rs:21:8: 21:13
      let mut _0: ();                      // return place in scope 0 at $DIR/copy_propagation_arg.rs:21:20: 21:20
      let mut _2: i32;                     // in scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
  
      bb0: {
          StorageLive(_2);                 // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
          _2 = _1;                         // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
          _1 = move _2;                    // scope 0 at $DIR/copy_propagation_arg.rs:23:5: 23:10
          StorageDead(_2);                 // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
          _0 = const ();                   // scope 0 at $DIR/copy_propagation_arg.rs:21:20: 24:2
          return;                          // scope 0 at $DIR/copy_propagation_arg.rs:24:2: 24:2
      }
  }