about summary refs log tree commit diff
path: root/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-06-23 15:54:42 +0200
committerNadrieril <nadrieril+git@gmail.com>2024-07-29 09:50:07 +0200
commite2fd9aa33e1887417375e94ec79b39ab4682c8b4 (patch)
tree5032ccd5c6ad8b4302329f1134b61b1490b66b23 /tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
parent9e05fb67a3360b9faf49b3484e2ac5cec27a6e78 (diff)
downloadrust-e2fd9aa33e1887417375e94ec79b39ab4682c8b4.tar.gz
rust-e2fd9aa33e1887417375e94ec79b39ab4682c8b4.zip
Set up false edges in `lower_match_tree`
Diffstat (limited to 'tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff')
-rw-r--r--tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
index 7776ff0fde7..41ae2fd3af3 100644
--- a/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
+++ b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
@@ -38,15 +38,20 @@
   
       bb2: {
           _6 = discriminant((_3.1: std::option::Option<u32>));
-          switchInt(move _6) -> [1: bb4, 0: bb1, otherwise: bb7];
+          switchInt(move _6) -> [1: bb5, 0: bb1, otherwise: bb7];
       }
   
       bb3: {
           _7 = discriminant((_3.1: std::option::Option<u32>));
-          switchInt(move _7) -> [0: bb5, 1: bb1, otherwise: bb7];
+          switchInt(move _7) -> [0: bb4, 1: bb1, otherwise: bb7];
       }
   
       bb4: {
+          _0 = const 2_u32;
+          goto -> bb6;
+      }
+  
+      bb5: {
           StorageLive(_9);
           _9 = (((_3.0: std::option::Option<u32>) as Some).0: u32);
           StorageLive(_10);
@@ -57,11 +62,6 @@
           goto -> bb6;
       }
   
-      bb5: {
-          _0 = const 2_u32;
-          goto -> bb6;
-      }
-  
       bb6: {
           StorageDead(_3);
           return;