about summary refs log tree commit diff
path: root/tests/mir-opt/instsimplify/aggregate_array.strs.InstSimplify-after-simplifycfg.diff
blob: ca5573cf97f409453eddf3dcd4b83cdebb94e91d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- // MIR for `strs` before InstSimplify-after-simplifycfg
+ // MIR for `strs` after InstSimplify-after-simplifycfg
  
  fn strs() -> [&str; 5] {
      let mut _0: [&str; 5];
  
      bb0: {
-         _0 = [const "a", const "a", const "a", const "a", const "a"];
+         _0 = [const "a"; 5];
          return;
      }
  }
  
  ALLOC0 (size: 1, align: 1) {
      61                                              │ a
  }