fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB41 linesraw
1- // MIR for `unchecked_shl_unsigned_smaller` before Inline
2+ // MIR for `unchecked_shl_unsigned_smaller` after Inline
3  
4  fn unchecked_shl_unsigned_smaller(_1: u16, _2: u32) -> u16 {
5      debug a => _1;
6      debug b => _2;
7      let mut _0: u16;
8      let mut _3: u16;
9      let mut _4: u32;
10+     scope 1 (inlined core::num::<impl u16>::unchecked_shl) {
11+         debug self => _3;
12+         debug rhs => _4;
13+         let mut _5: u16;
14+         let mut _6: bool;
15+         scope 2 {
16+         }
17+     }
18  
19      bb0: {
20          StorageLive(_3);
21          _3 = _1;
22          StorageLive(_4);
23          _4 = _2;
24-         _0 = core::num::<impl u16>::unchecked_shl(move _3, move _4) -> [return: bb1, unwind continue];
25-     }
26- 
27-     bb1: {
28+         StorageLive(_5);
29+         StorageLive(_6);
30+         _6 = Le(_4, const 65535_u32);
31+         assume(move _6);
32+         StorageDead(_6);
33+         _5 = _4 as u16 (IntToInt);
34+         _0 = ShlUnchecked(_3, move _5);
35+         StorageDead(_5);
36          StorageDead(_4);
37          StorageDead(_3);
38          return;
39      }
40  }
41