]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/casts.redundant.InstSimplify.diff
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / mir-opt / casts.redundant.InstSimplify.diff
1 - // MIR for `redundant` before InstSimplify
2 + // MIR for `redundant` after InstSimplify
3
4 fn redundant(_1: *const &u8) -> *const &u8 {
5 debug x => _1;
6 let mut _0: *const &u8;
7 let mut _2: *const &u8;
8 let mut _3: *const &u8;
9 scope 1 (inlined generic_cast::<&u8, &u8>) {
10 debug x => _1;
11 }
12
13 bb0: {
14 StorageLive(_2);
15 StorageLive(_3);
16 _3 = _1;
17 - _2 = _3 as *const &u8 (PtrToPtr);
18 + _2 = _3;
19 StorageDead(_3);
20 _0 = _2;
21 StorageDead(_2);
22 return;
23 }
24 }
25