summary refs log tree commit diff
path: root/tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-02-12 04:56:03 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-02-12 17:37:05 +0100
commitfaaf81bbbcd5114ad8268190f3cc235868997ae3 (patch)
treeed62909c2ddf40630b2c4adfb60f9585e39b5137 /tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff
parentf4cfd872028398da2b2d85c368c51f4d007dc6af (diff)
downloadrust-faaf81bbbcd5114ad8268190f3cc235868997ae3.tar.gz
rust-faaf81bbbcd5114ad8268190f3cc235868997ae3.zip
Start blocks eagerly
Diffstat (limited to 'tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff')
-rw-r--r--tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff b/tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff
index f5eade4a914..365d9d6b32b 100644
--- a/tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff
+++ b/tests/mir-opt/jump_threading.too_complex.JumpThreading.panic-unwind.diff
@@ -30,10 +30,14 @@
       bb0: {
           StorageLive(_2);
           _3 = discriminant(_1);
-          switchInt(move _3) -> [0: bb3, 1: bb1, otherwise: bb2];
+          switchInt(move _3) -> [0: bb3, 1: bb2, otherwise: bb1];
       }
   
       bb1: {
+          unreachable;
+      }
+  
+      bb2: {
           StorageLive(_6);
           _6 = ((_1 as Err).0: usize);
           StorageLive(_7);
@@ -45,10 +49,6 @@
 +         goto -> bb8;
       }
   
-      bb2: {
-          unreachable;
-      }
-  
       bb3: {
           StorageLive(_4);
           _4 = ((_1 as Ok).0: i32);
@@ -62,7 +62,7 @@
   
       bb4: {
           _8 = discriminant(_2);
--         switchInt(move _8) -> [0: bb6, 1: bb5, otherwise: bb2];
+-         switchInt(move _8) -> [0: bb6, 1: bb5, otherwise: bb1];
 +         goto -> bb6;
       }