summary refs log tree commit diff
path: root/tests/mir-opt/sroa/simd_sroa.foo.ScalarReplacementOfAggregates.diff
blob: 744032471089ded0248817873d2e1fc3f2ab4857 (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
31
32
- // MIR for `foo` before ScalarReplacementOfAggregates
+ // MIR for `foo` after ScalarReplacementOfAggregates
  
  fn foo(_1: &[Simd<u8, 16>], _2: Simd<u8, 16>) -> () {
      debug simds => _1;
      debug _unused => _2;
      let mut _0: ();
      let _3: std::simd::Simd<u8, 16>;
      let _4: usize;
      let mut _5: usize;
      let mut _6: bool;
      scope 1 {
          debug a => _3;
      }
  
      bb0: {
          StorageLive(_3);
          StorageLive(_4);
          _4 = const 0_usize;
          _5 = PtrMetadata(copy _1);
          _6 = Lt(copy _4, copy _5);
          assert(move _6, "index out of bounds: the length is {} but the index is {}", move _5, copy _4) -> [success: bb1, unwind continue];
      }
  
      bb1: {
          _3 = copy (*_1)[_4];
          StorageDead(_4);
          StorageDead(_3);
          return;
      }
  }