]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/boolean_identities.test.ConstProp.diff
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / tests / mir-opt / const_prop / boolean_identities.test.ConstProp.diff
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;                       // in scope 0 at $DIR/boolean_identities.rs:+0:13: +0:14
6       debug y => _2;                       // in scope 0 at $DIR/boolean_identities.rs:+0:22: +0:23
7       let mut _0: bool;                    // return place in scope 0 at $DIR/boolean_identities.rs:+0:34: +0:38
8       let mut _3: bool;                    // in scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
9       let mut _4: bool;                    // in scope 0 at $DIR/boolean_identities.rs:+1:6: +1:7
10       let mut _5: bool;                    // in scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
11       let mut _6: bool;                    // in scope 0 at $DIR/boolean_identities.rs:+1:19: +1:20
12   
13       bb0: {
14           StorageLive(_3);                 // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
15 -         _3 = BitOr(_2, const true);      // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
16 +         _3 = const true;                 // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:15
17           StorageLive(_5);                 // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
18 -         _5 = BitAnd(_1, const false);    // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
19 -         _0 = BitAnd(move _3, move _5);   // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:29
20 +         _5 = const false;                // scope 0 at $DIR/boolean_identities.rs:+1:18: +1:29
21 +         _0 = const false;                // scope 0 at $DIR/boolean_identities.rs:+1:5: +1:29
22           StorageDead(_5);                 // scope 0 at $DIR/boolean_identities.rs:+1:28: +1:29
23           StorageDead(_3);                 // scope 0 at $DIR/boolean_identities.rs:+1:28: +1:29
24           return;                          // scope 0 at $DIR/boolean_identities.rs:+2:2: +2:2
25       }
26   }
27