about summary refs log tree commit diff
path: root/src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-27 16:09:52 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-02-27 19:05:56 +0100
commite77e4fcf898ca4b2aa2041d2cbac200ed0f11b5b (patch)
tree9994c3a36e798d935142a9dbee2c84c872be4b0c /src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff
parent6cbc6c35e4b0c948114619a1c883a75b731d32c5 (diff)
downloadrust-e77e4fcf898ca4b2aa2041d2cbac200ed0f11b5b.tar.gz
rust-e77e4fcf898ca4b2aa2041d2cbac200ed0f11b5b.zip
Only create a single expansion for each inline integration.
Diffstat (limited to 'src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff')
-rw-r--r--src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff b/src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff
index bef57548005..b568b3a479f 100644
--- a/src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff
+++ b/src/test/mir-opt/simplify_try.try_identity.SimplifyArmIdentity.diff
@@ -22,12 +22,12 @@
 -         debug e => _6;                   // in scope 2 at $DIR/simplify_try.rs:22:13: 22:14
 +         debug e => ((_0 as Err).0: i32); // in scope 2 at $DIR/simplify_try.rs:22:13: 22:14
           scope 5 (inlined <i32 as From<i32>>::from) { // at $DIR/simplify_try.rs:22:37: 22:50
--             debug t => _9;               // in scope 5 at $DIR/simplify_try.rs:22:37: 22:50
-+             debug t => ((_0 as Err).0: i32); // in scope 5 at $DIR/simplify_try.rs:22:37: 22:50
+-             debug t => _9;               // in scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL
++             debug t => ((_0 as Err).0: i32); // in scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL
           }
           scope 6 (inlined from_error::<u32, i32>) { // at $DIR/simplify_try.rs:22:26: 22:51
--             debug e => _8;               // in scope 6 at $DIR/simplify_try.rs:22:26: 22:51
-+             debug e => ((_0 as Err).0: i32); // in scope 6 at $DIR/simplify_try.rs:22:26: 22:51
+-             debug e => _8;               // in scope 6 at $DIR/simplify_try.rs:12:21: 12:22
++             debug e => ((_0 as Err).0: i32); // in scope 6 at $DIR/simplify_try.rs:12:21: 12:22
           }
       }
       scope 3 {
@@ -35,7 +35,7 @@
 +         debug v => ((_0 as Ok).0: u32);  // in scope 3 at $DIR/simplify_try.rs:23:12: 23:13
       }
       scope 4 (inlined into_result::<u32, i32>) { // at $DIR/simplify_try.rs:21:19: 21:33
-          debug r => _4;                   // in scope 4 at $DIR/simplify_try.rs:21:19: 21:33
+          debug r => _4;                   // in scope 4 at $DIR/simplify_try.rs:8:22: 8:23
       }
   
       bb0: {
@@ -43,7 +43,7 @@
           StorageLive(_3);                 // scope 0 at $DIR/simplify_try.rs:21:19: 21:33
           StorageLive(_4);                 // scope 0 at $DIR/simplify_try.rs:21:31: 21:32
           _4 = _1;                         // scope 0 at $DIR/simplify_try.rs:21:31: 21:32
-          _3 = move _4;                    // scope 4 at $DIR/simplify_try.rs:21:19: 21:33
+          _3 = move _4;                    // scope 4 at $DIR/simplify_try.rs:9:5: 9:6
           StorageDead(_4);                 // scope 0 at $DIR/simplify_try.rs:21:32: 21:33
           _5 = discriminant(_3);           // scope 0 at $DIR/simplify_try.rs:21:19: 21:33
           switchInt(move _5) -> [0_isize: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_try.rs:21:13: 21:33
@@ -71,13 +71,13 @@
 -         StorageLive(_8);                 // scope 2 at $DIR/simplify_try.rs:22:37: 22:50
 -         StorageLive(_9);                 // scope 2 at $DIR/simplify_try.rs:22:48: 22:49
 -         _9 = _6;                         // scope 2 at $DIR/simplify_try.rs:22:48: 22:49
--         _8 = move _9;                    // scope 5 at $DIR/simplify_try.rs:22:37: 22:50
+-         _8 = move _9;                    // scope 5 at $SRC_DIR/core/src/convert/mod.rs:LL:COL
 -         StorageDead(_9);                 // scope 2 at $DIR/simplify_try.rs:22:49: 22:50
--         ((_0 as Err).0: i32) = move _8;  // scope 6 at $DIR/simplify_try.rs:22:26: 22:51
--         discriminant(_0) = 1;            // scope 6 at $DIR/simplify_try.rs:22:26: 22:51
+-         ((_0 as Err).0: i32) = move _8;  // scope 6 at $DIR/simplify_try.rs:13:9: 13:10
+-         discriminant(_0) = 1;            // scope 6 at $DIR/simplify_try.rs:13:5: 13:11
 -         StorageDead(_8);                 // scope 2 at $DIR/simplify_try.rs:22:50: 22:51
 -         StorageDead(_6);                 // scope 0 at $DIR/simplify_try.rs:22:50: 22:51
-+         _0 = move _3;                    // scope 6 at $DIR/simplify_try.rs:22:26: 22:51
++         _0 = move _3;                    // scope 6 at $DIR/simplify_try.rs:13:5: 13:11
           StorageDead(_3);                 // scope 0 at $DIR/simplify_try.rs:24:6: 24:7
           StorageDead(_2);                 // scope 0 at $DIR/simplify_try.rs:26:1: 26:2
           return;                          // scope 0 at $DIR/simplify_try.rs:26:2: 26:2