File: gvn_copy_aggregate.remove_storage_dead_from_index.GVN.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (26 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
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
- // MIR for `remove_storage_dead_from_index` before GVN
+ // MIR for `remove_storage_dead_from_index` after GVN
  
  fn remove_storage_dead_from_index(_1: fn() -> usize, _2: [SameType; 5]) -> SameType {
      let mut _0: SameType;
      let mut _3: usize;
      let mut _4: i32;
      let mut _5: i32;
  
      bb0: {
-         StorageLive(_3);
+         nop;
          _3 = copy _1() -> [return: bb1, unwind unreachable];
      }
  
      bb1: {
          _4 = copy (_2[_3].0: i32);
          _5 = copy (_2[_3].1: i32);
-         StorageDead(_3);
-         _0 = SameType { a: copy _4, b: copy _5 };
+         nop;
+         _0 = copy _2[_3];
          return;
      }
  }