about summary refs log tree commit diff
path: root/tests/mir-opt/instsimplify/simplify_repeat.repeat_once_to_aggregate.InstSimplify-after-simplifycfg.diff
blob: 6c1b9abc5d7c716930e41f702d4135154b8c7d81 (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
28
29
30
- // MIR for `repeat_once_to_aggregate` before InstSimplify-after-simplifycfg
+ // MIR for `repeat_once_to_aggregate` after InstSimplify-after-simplifycfg
  
  fn repeat_once_to_aggregate(_1: T) -> [T; 1] {
      debug x => _1;
      let mut _0: [T; 1];
      let _2: [T; 1];
      let mut _3: T;
      let mut _4: T;
      scope 1 {
          debug other => _2;
      }
  
      bb0: {
          StorageLive(_2);
          StorageLive(_3);
          _3 = copy _1;
-         _2 = [move _3; 1];
+         _2 = [move _3];
          StorageDead(_3);
          StorageLive(_4);
          _4 = copy _1;
-         _0 = [move _4; 1];
+         _0 = [move _4];
          StorageDead(_4);
          StorageDead(_2);
          return;
      }
  }