about summary refs log tree commit diff
path: root/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-02-28 22:35:41 +0800
committerDianQK <dianqk@dianqk.net>2024-03-08 08:15:14 +0800
commitb5bd98d5403c1376dadbc635ae426888320f3f9a (patch)
tree0c0d230ff21dbbe8e662e61828ad975c5c5e82fd /tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
parent3d7f8b4e5b650efc628de9bf4bd5246d3493d261 (diff)
downloadrust-b5bd98d5403c1376dadbc635ae426888320f3f9a.tar.gz
rust-b5bd98d5403c1376dadbc635ae426888320f3f9a.zip
Update MIR with `MirPatch` in `UninhabitedEnumBranching`
Diffstat (limited to 'tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff')
-rw-r--r--tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff b/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
index 1ac527e9338..f7495862992 100644
--- a/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
+++ b/tests/mir-opt/separate_const_switch.too_complex.JumpThreading.diff
@@ -27,54 +27,54 @@
       bb0: {
           StorageLive(_2);
           _3 = discriminant(_1);
-          switchInt(move _3) -> [0: bb2, 1: bb1, otherwise: bb7];
+          switchInt(move _3) -> [0: bb3, 1: bb2, otherwise: bb1];
       }
   
       bb1: {
+          unreachable;
+      }
+  
+      bb2: {
           _5 = ((_1 as Err).0: usize);
           _2 = ControlFlow::<usize, i32>::Break(_5);
--         goto -> bb3;
+-         goto -> bb4;
 +         goto -> bb8;
       }
   
-      bb2: {
+      bb3: {
           _4 = ((_1 as Ok).0: i32);
           _2 = ControlFlow::<usize, i32>::Continue(_4);
-          goto -> bb3;
+          goto -> bb4;
       }
   
-      bb3: {
+      bb4: {
           _6 = discriminant(_2);
--         switchInt(move _6) -> [0: bb5, 1: bb4, otherwise: bb7];
-+         goto -> bb5;
+-         switchInt(move _6) -> [0: bb6, 1: bb5, otherwise: bb1];
++         goto -> bb6;
       }
   
-      bb4: {
+      bb5: {
           StorageLive(_8);
           _8 = ((_2 as Break).0: usize);
           _0 = const Option::<i32>::None;
           StorageDead(_8);
-          goto -> bb6;
+          goto -> bb7;
       }
   
-      bb5: {
+      bb6: {
           _7 = ((_2 as Continue).0: i32);
           _0 = Option::<i32>::Some(_7);
-          goto -> bb6;
+          goto -> bb7;
       }
   
-      bb6: {
+      bb7: {
           StorageDead(_2);
           return;
-      }
-  
-      bb7: {
-          unreachable;
 +     }
 + 
 +     bb8: {
 +         _6 = discriminant(_2);
-+         goto -> bb4;
++         goto -> bb5;
       }
   }