1 - // MIR for `array_len` before InstCombine
2 + // MIR for `array_len` after InstCombine
4 fn array_len(_1: &[u8; N]) -> usize {
5 debug arr => _1; // in scope 0 at $DIR/lower_array_len.rs:30:34: 30:37
6 let mut _0: usize; // return place in scope 0 at $DIR/lower_array_len.rs:30:52: 30:57
7 let mut _2: &[u8]; // in scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
8 let mut _3: &[u8; N]; // in scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
9 let mut _4: &[u8; N]; // in scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
12 StorageLive(_2); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
13 StorageLive(_3); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
14 - _3 = &(*_1); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
15 + _3 = _1; // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
16 StorageLive(_4); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
17 _4 = _3; // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
18 _2 = move _3 as &[u8] (Pointer(Unsize)); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
19 StorageDead(_3); // scope 0 at $DIR/lower_array_len.rs:31:7: 31:8
20 - _0 = Len((*_4)); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
21 + _0 = const N; // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
22 StorageDead(_4); // scope 0 at $DIR/lower_array_len.rs:31:5: 31:14
23 StorageDead(_2); // scope 0 at $DIR/lower_array_len.rs:31:13: 31:14
24 return; // scope 0 at $DIR/lower_array_len.rs:32:2: 32:2