about summary refs log tree commit diff
path: root/tests/mir-opt/dead-store-elimination/place_mention.main.DeadStoreElimination-initial.diff
blob: 8e224e0533a516596fe3f7d93369e118fbeb58c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- // MIR for `main` before DeadStoreElimination-initial
+ // MIR for `main` after DeadStoreElimination-initial
  
  fn main() -> () {
      let mut _0: ();
      let mut _1: (&str, &str);
      scope 1 {
      }
  
      bb0: {
          StorageLive(_1);
          _1 = (const "Hello", const "World");
          PlaceMention(_1);
          StorageDead(_1);
          _0 = const ();
          return;
      }
  }
  
  ALLOC0 (size: 5, align: 1) {
      57 6f 72 6c 64                                  │ World
  }
  
  ALLOC1 (size: 5, align: 1) {
      48 65 6c 6c 6f                                  │ Hello
  }