summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff')
-rw-r--r--tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff24
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff b/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
index b5edbfee0..5a71bef93 100644
--- a/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
+++ b/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
@@ -40,39 +40,43 @@
- }
-
- bb3: {
+- switchInt(move _5) -> [0: bb5, otherwise: bb4];
+- }
+-
+- bb4: {
+ StorageLive(_7);
+ _7 = move _6;
+ _5 = Ne(_7, const false);
+ StorageDead(_7);
++ StorageLive(_8);
++ _8 = move _5;
StorageDead(_6);
-- switchInt(move _5) -> [0: bb5, otherwise: bb4];
-- }
--
-- bb4: {
- _4 = const true;
- goto -> bb6;
- }
-
- bb5: {
+- StorageDead(_6);
- _4 = const false;
- goto -> bb6;
- }
-
- bb6: {
-+ StorageLive(_8);
-+ _8 = move _5;
-+ _4 = Ne(_8, const false);
-+ StorageDead(_8);
- StorageDead(_5);
- switchInt(move _4) -> [0: bb8, otherwise: bb7];
- }
-
- bb7: {
++ _4 = Ne(_8, const false);
++ StorageDead(_8);
++ StorageLive(_9);
++ _9 = move _4;
+ StorageDead(_5);
- _3 = const true;
- goto -> bb9;
- }
-
- bb8: {
+- StorageDead(_5);
- _3 = const false;
- goto -> bb9;
- }
@@ -82,8 +86,6 @@
- }
-
- bb10: {
-+ StorageLive(_9);
-+ _9 = move _4;
+ _3 = Ne(_9, const false);
+ StorageDead(_9);
+ StorageLive(_10);