about summary refs log tree commit diff
path: root/tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-06-06 09:47:00 -0400
committerBen Kimock <kimockb@gmail.com>2023-06-15 15:19:11 -0400
commit0a1fa411edbf6f9ad1205655d77cfda5a43aac06 (patch)
tree35f05b194635642648301bb16e271ce4ae6860a2 /tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
parent331249a94930adb3d2a7243d946733b63324b2d6 (diff)
downloadrust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.tar.gz
rust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.zip
Remove comments from mir-opt MIR dumps
Diffstat (limited to 'tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff')
-rw-r--r--tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff76
1 files changed, 35 insertions, 41 deletions
diff --git a/tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff b/tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
index 9bb43d850eb..c532d74ced0 100644
--- a/tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
+++ b/tests/mir-opt/lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
@@ -2,59 +2,53 @@
 + // MIR for `unchecked` after LowerIntrinsics
   
   fn unchecked(_1: i32, _2: i32) -> () {
-      debug a => _1;                       // in scope 0 at $DIR/lower_intrinsics.rs:+0:25: +0:26
-      debug b => _2;                       // in scope 0 at $DIR/lower_intrinsics.rs:+0:33: +0:34
-      let mut _0: ();                      // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:41: +0:41
-      let _3: i32;                         // in scope 0 at $DIR/lower_intrinsics.rs:+1:9: +1:11
-      let mut _4: i32;                     // in scope 0 at $DIR/lower_intrinsics.rs:+1:46: +1:47
-      let mut _5: i32;                     // in scope 0 at $DIR/lower_intrinsics.rs:+1:49: +1:50
-      let mut _7: i32;                     // in scope 0 at $DIR/lower_intrinsics.rs:+2:46: +2:47
-      let mut _8: i32;                     // in scope 0 at $DIR/lower_intrinsics.rs:+2:49: +2:50
+      debug a => _1;
+      debug b => _2;
+      let mut _0: ();
+      let _3: i32;
+      let mut _4: i32;
+      let mut _5: i32;
+      let mut _7: i32;
+      let mut _8: i32;
       scope 1 {
-          debug _x => _3;                  // in scope 1 at $DIR/lower_intrinsics.rs:+1:9: +1:11
-          let _6: i32;                     // in scope 1 at $DIR/lower_intrinsics.rs:+2:9: +2:11
+          debug _x => _3;
+          let _6: i32;
           scope 2 {
-              debug _y => _6;              // in scope 2 at $DIR/lower_intrinsics.rs:+2:9: +2:11
+              debug _y => _6;
           }
       }
   
       bb0: {
-          StorageLive(_3);                 // scope 0 at $DIR/lower_intrinsics.rs:+1:9: +1:11
-          StorageLive(_4);                 // scope 0 at $DIR/lower_intrinsics.rs:+1:46: +1:47
-          _4 = _1;                         // scope 0 at $DIR/lower_intrinsics.rs:+1:46: +1:47
-          StorageLive(_5);                 // scope 0 at $DIR/lower_intrinsics.rs:+1:49: +1:50
-          _5 = _2;                         // scope 0 at $DIR/lower_intrinsics.rs:+1:49: +1:50
--         _3 = unchecked_div::<i32>(move _4, move _5) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:51
--                                          // mir::Constant
--                                          // + span: $DIR/lower_intrinsics.rs:16:14: 16:45
--                                          // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(i32, i32) -> i32 {unchecked_div::<i32>}, val: Value(<ZST>) }
-+         _3 = Div(move _4, move _5);      // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:51
-+         goto -> bb1;                     // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:51
+          StorageLive(_3);
+          StorageLive(_4);
+          _4 = _1;
+          StorageLive(_5);
+          _5 = _2;
+-         _3 = unchecked_div::<i32>(move _4, move _5) -> [return: bb1, unwind unreachable];
++         _3 = Div(move _4, move _5);
++         goto -> bb1;
       }
   
       bb1: {
-          StorageDead(_5);                 // scope 0 at $DIR/lower_intrinsics.rs:+1:50: +1:51
-          StorageDead(_4);                 // scope 0 at $DIR/lower_intrinsics.rs:+1:50: +1:51
-          StorageLive(_6);                 // scope 1 at $DIR/lower_intrinsics.rs:+2:9: +2:11
-          StorageLive(_7);                 // scope 1 at $DIR/lower_intrinsics.rs:+2:46: +2:47
-          _7 = _1;                         // scope 1 at $DIR/lower_intrinsics.rs:+2:46: +2:47
-          StorageLive(_8);                 // scope 1 at $DIR/lower_intrinsics.rs:+2:49: +2:50
-          _8 = _2;                         // scope 1 at $DIR/lower_intrinsics.rs:+2:49: +2:50
--         _6 = unchecked_rem::<i32>(move _7, move _8) -> [return: bb2, unwind unreachable]; // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:51
--                                          // mir::Constant
--                                          // + span: $DIR/lower_intrinsics.rs:17:14: 17:45
--                                          // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(i32, i32) -> i32 {unchecked_rem::<i32>}, val: Value(<ZST>) }
-+         _6 = Rem(move _7, move _8);      // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:51
-+         goto -> bb2;                     // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:51
+          StorageDead(_5);
+          StorageDead(_4);
+          StorageLive(_6);
+          StorageLive(_7);
+          _7 = _1;
+          StorageLive(_8);
+          _8 = _2;
+-         _6 = unchecked_rem::<i32>(move _7, move _8) -> [return: bb2, unwind unreachable];
++         _6 = Rem(move _7, move _8);
++         goto -> bb2;
       }
   
       bb2: {
-          StorageDead(_8);                 // scope 1 at $DIR/lower_intrinsics.rs:+2:50: +2:51
-          StorageDead(_7);                 // scope 1 at $DIR/lower_intrinsics.rs:+2:50: +2:51
-          _0 = const ();                   // scope 0 at $DIR/lower_intrinsics.rs:+0:41: +3:2
-          StorageDead(_6);                 // scope 1 at $DIR/lower_intrinsics.rs:+3:1: +3:2
-          StorageDead(_3);                 // scope 0 at $DIR/lower_intrinsics.rs:+3:1: +3:2
-          return;                          // scope 0 at $DIR/lower_intrinsics.rs:+3:2: +3:2
+          StorageDead(_8);
+          StorageDead(_7);
+          _0 = const ();
+          StorageDead(_6);
+          StorageDead(_3);
+          return;
       }
   }