fork/rust

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

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

master
637 B27 linesraw
1- // MIR for `test` before ConstProp
2+ // MIR for `test` after ConstProp
3  
4  fn test(_1: bool, _2: bool) -> bool {
5      debug x => _1;
6      debug y => _2;
7      let mut _0: bool;
8      let mut _3: bool;
9      let mut _4: bool;
10      let mut _5: bool;
11      let mut _6: bool;
12  
13      bb0: {
14          StorageLive(_3);
15-         _3 = BitOr(_2, const true);
16+         _3 = const true;
17          StorageLive(_5);
18-         _5 = BitAnd(_1, const false);
19-         _0 = BitAnd(move _3, move _5);
20+         _5 = const false;
21+         _0 = const false;
22          StorageDead(_5);
23          StorageDead(_3);
24          return;
25      }
26  }
27