]> git.proxmox.com Git - rustc.git/blobdiff - src/test/mir-opt/if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / mir-opt / if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff
index fd4dcb2265e61df2a0530bb17aca2151e9b61cf8..3f612e03f58e2e3f97ca3f68c18b27b1d7ab3fa1 100644 (file)
@@ -2,57 +2,57 @@
 + // MIR for `dont_remove_comparison` after SimplifyComparisonIntegral
   
   fn dont_remove_comparison(_1: i8) -> i32 {
-      debug a => _1;                       // in scope 0 at $DIR/if-condition-int.rs:43:27: 43:28
-      let mut _0: i32;                     // return place in scope 0 at $DIR/if-condition-int.rs:43:37: 43:40
-      let _2: bool;                        // in scope 0 at $DIR/if-condition-int.rs:44:9: 44:10
-      let mut _3: i8;                      // in scope 0 at $DIR/if-condition-int.rs:44:13: 44:14
-      let mut _4: i32;                     // in scope 0 at $DIR/if-condition-int.rs:46:23: 46:31
-      let mut _5: bool;                    // in scope 0 at $DIR/if-condition-int.rs:46:23: 46:24
-      let mut _6: i32;                     // in scope 0 at $DIR/if-condition-int.rs:47:23: 47:31
-      let mut _7: bool;                    // in scope 0 at $DIR/if-condition-int.rs:47:23: 47:24
+      debug a => _1;                       // in scope 0 at $DIR/if-condition-int.rs:+0:27: +0:28
+      let mut _0: i32;                     // return place in scope 0 at $DIR/if-condition-int.rs:+0:37: +0:40
+      let _2: bool;                        // in scope 0 at $DIR/if-condition-int.rs:+1:9: +1:10
+      let mut _3: i8;                      // in scope 0 at $DIR/if-condition-int.rs:+1:13: +1:14
+      let mut _4: i32;                     // in scope 0 at $DIR/if-condition-int.rs:+3:23: +3:31
+      let mut _5: bool;                    // in scope 0 at $DIR/if-condition-int.rs:+3:23: +3:24
+      let mut _6: i32;                     // in scope 0 at $DIR/if-condition-int.rs:+4:23: +4:31
+      let mut _7: bool;                    // in scope 0 at $DIR/if-condition-int.rs:+4:23: +4:24
       scope 1 {
-          debug b => _2;                   // in scope 1 at $DIR/if-condition-int.rs:44:9: 44:10
+          debug b => _2;                   // in scope 1 at $DIR/if-condition-int.rs:+1:9: +1:10
       }
   
       bb0: {
-          StorageLive(_2);                 // scope 0 at $DIR/if-condition-int.rs:44:9: 44:10
-          StorageLive(_3);                 // scope 0 at $DIR/if-condition-int.rs:44:13: 44:14
-          _3 = _1;                         // scope 0 at $DIR/if-condition-int.rs:44:13: 44:14
--         _2 = Eq(move _3, const 17_i8);   // scope 0 at $DIR/if-condition-int.rs:44:13: 44:20
--         StorageDead(_3);                 // scope 0 at $DIR/if-condition-int.rs:44:19: 44:20
--         switchInt(_2) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if-condition-int.rs:45:5: 45:12
-+         _2 = Eq(_3, const 17_i8);        // scope 0 at $DIR/if-condition-int.rs:44:13: 44:20
-+         nop;                             // scope 0 at $DIR/if-condition-int.rs:44:19: 44:20
-+         switchInt(move _3) -> [17_i8: bb1, otherwise: bb2]; // scope 1 at $DIR/if-condition-int.rs:45:5: 45:12
+          StorageLive(_2);                 // scope 0 at $DIR/if-condition-int.rs:+1:9: +1:10
+          StorageLive(_3);                 // scope 0 at $DIR/if-condition-int.rs:+1:13: +1:14
+          _3 = _1;                         // scope 0 at $DIR/if-condition-int.rs:+1:13: +1:14
+-         _2 = Eq(move _3, const 17_i8);   // scope 0 at $DIR/if-condition-int.rs:+1:13: +1:20
+-         StorageDead(_3);                 // scope 0 at $DIR/if-condition-int.rs:+1:19: +1:20
+-         switchInt(_2) -> [false: bb2, otherwise: bb1]; // scope 1 at $DIR/if-condition-int.rs:+2:5: +2:12
++         _2 = Eq(_3, const 17_i8);        // scope 0 at $DIR/if-condition-int.rs:+1:13: +1:20
++         nop;                             // scope 0 at $DIR/if-condition-int.rs:+1:19: +1:20
++         switchInt(move _3) -> [17_i8: bb1, otherwise: bb2]; // scope 1 at $DIR/if-condition-int.rs:+2:5: +2:12
       }
   
       bb1: {
-+         StorageDead(_3);                 // scope 1 at $DIR/if-condition-int.rs:45:5: 45:12
-          StorageLive(_6);                 // scope 1 at $DIR/if-condition-int.rs:47:23: 47:31
-          StorageLive(_7);                 // scope 1 at $DIR/if-condition-int.rs:47:23: 47:24
-          _7 = _2;                         // scope 1 at $DIR/if-condition-int.rs:47:23: 47:24
-          _6 = move _7 as i32 (Misc);      // scope 1 at $DIR/if-condition-int.rs:47:23: 47:31
-          StorageDead(_7);                 // scope 1 at $DIR/if-condition-int.rs:47:30: 47:31
-          _0 = Add(const 100_i32, move _6); // scope 1 at $DIR/if-condition-int.rs:47:17: 47:31
-          StorageDead(_6);                 // scope 1 at $DIR/if-condition-int.rs:47:30: 47:31
-          goto -> bb3;                     // scope 1 at $DIR/if-condition-int.rs:47:30: 47:31
++         StorageDead(_3);                 // scope 1 at $DIR/if-condition-int.rs:+2:5: +2:12
+          StorageLive(_6);                 // scope 1 at $DIR/if-condition-int.rs:+4:23: +4:31
+          StorageLive(_7);                 // scope 1 at $DIR/if-condition-int.rs:+4:23: +4:24
+          _7 = _2;                         // scope 1 at $DIR/if-condition-int.rs:+4:23: +4:24
+          _6 = move _7 as i32 (Misc);      // scope 1 at $DIR/if-condition-int.rs:+4:23: +4:31
+          StorageDead(_7);                 // scope 1 at $DIR/if-condition-int.rs:+4:30: +4:31
+          _0 = Add(const 100_i32, move _6); // scope 1 at $DIR/if-condition-int.rs:+4:17: +4:31
+          StorageDead(_6);                 // scope 1 at $DIR/if-condition-int.rs:+4:30: +4:31
+          goto -> bb3;                     // scope 1 at $DIR/if-condition-int.rs:+4:30: +4:31
       }
   
       bb2: {
-+         StorageDead(_3);                 // scope 1 at $DIR/if-condition-int.rs:45:5: 45:12
-          StorageLive(_4);                 // scope 1 at $DIR/if-condition-int.rs:46:23: 46:31
-          StorageLive(_5);                 // scope 1 at $DIR/if-condition-int.rs:46:23: 46:24
-          _5 = _2;                         // scope 1 at $DIR/if-condition-int.rs:46:23: 46:24
-          _4 = move _5 as i32 (Misc);      // scope 1 at $DIR/if-condition-int.rs:46:23: 46:31
-          StorageDead(_5);                 // scope 1 at $DIR/if-condition-int.rs:46:30: 46:31
-          _0 = Add(const 10_i32, move _4); // scope 1 at $DIR/if-condition-int.rs:46:18: 46:31
-          StorageDead(_4);                 // scope 1 at $DIR/if-condition-int.rs:46:30: 46:31
-          goto -> bb3;                     // scope 1 at $DIR/if-condition-int.rs:46:30: 46:31
++         StorageDead(_3);                 // scope 1 at $DIR/if-condition-int.rs:+2:5: +2:12
+          StorageLive(_4);                 // scope 1 at $DIR/if-condition-int.rs:+3:23: +3:31
+          StorageLive(_5);                 // scope 1 at $DIR/if-condition-int.rs:+3:23: +3:24
+          _5 = _2;                         // scope 1 at $DIR/if-condition-int.rs:+3:23: +3:24
+          _4 = move _5 as i32 (Misc);      // scope 1 at $DIR/if-condition-int.rs:+3:23: +3:31
+          StorageDead(_5);                 // scope 1 at $DIR/if-condition-int.rs:+3:30: +3:31
+          _0 = Add(const 10_i32, move _4); // scope 1 at $DIR/if-condition-int.rs:+3:18: +3:31
+          StorageDead(_4);                 // scope 1 at $DIR/if-condition-int.rs:+3:30: +3:31
+          goto -> bb3;                     // scope 1 at $DIR/if-condition-int.rs:+3:30: +3:31
       }
   
       bb3: {
-          StorageDead(_2);                 // scope 0 at $DIR/if-condition-int.rs:49:1: 49:2
-          return;                          // scope 0 at $DIR/if-condition-int.rs:49:2: 49:2
+          StorageDead(_2);                 // scope 0 at $DIR/if-condition-int.rs:+6:1: +6:2
+          return;                          // scope 0 at $DIR/if-condition-int.rs:+6:2: +6:2
       }
   }