about summary refs log tree commit diff
path: root/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-09-16 17:13:30 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-25 06:46:45 +0000
commitd28405972ff8e83ac5e1be53c72eb44a43f983a8 (patch)
treed306eb5872b366b4227c2814a6547f93bb7753c0 /tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff
parent2e4e2a8f288f642cafcc41fff211955ceddc453d (diff)
downloadrust-d28405972ff8e83ac5e1be53c72eb44a43f983a8.tar.gz
rust-d28405972ff8e83ac5e1be53c72eb44a43f983a8.zip
Do not remove unused definitions inside GVN.
Diffstat (limited to 'tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff')
-rw-r--r--tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff b/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff
index f627b4d5988..3e731ead859 100644
--- a/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff
+++ b/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff
@@ -116,6 +116,7 @@
           _18 = &(*_1);
           StorageLive(_19);
 -         StorageLive(_20);
++         nop;
           _20 = (*_18);
 -         _19 = opaque::<u32>(move _20) -> [return: bb7, unwind continue];
 +         _19 = opaque::<u32>(_20) -> [return: bb7, unwind continue];
@@ -123,16 +124,18 @@
   
       bb7: {
 -         StorageDead(_20);
++         nop;
           StorageDead(_19);
           StorageLive(_21);
--         StorageLive(_22);
+          StorageLive(_22);
 -         _22 = (*_18);
 -         _21 = opaque::<u32>(move _22) -> [return: bb8, unwind continue];
++         _22 = _20;
 +         _21 = opaque::<u32>(_20) -> [return: bb8, unwind continue];
       }
   
       bb8: {
--         StorageDead(_22);
+          StorageDead(_22);
           StorageDead(_21);
           StorageLive(_23);
           StorageLive(_24);
@@ -163,6 +166,7 @@
           StorageDead(_27);
           StorageLive(_29);
 -         StorageLive(_30);
++         nop;
           _30 = ((*_3).0: u32);
 -         _29 = opaque::<u32>(move _30) -> [return: bb12, unwind continue];
 +         _29 = opaque::<u32>(_30) -> [return: bb12, unwind continue];
@@ -170,16 +174,18 @@
   
       bb12: {
 -         StorageDead(_30);
++         nop;
           StorageDead(_29);
           StorageLive(_31);
--         StorageLive(_32);
+          StorageLive(_32);
 -         _32 = ((*_3).0: u32);
 -         _31 = opaque::<u32>(move _32) -> [return: bb13, unwind continue];
++         _32 = _30;
 +         _31 = opaque::<u32>(_30) -> [return: bb13, unwind continue];
       }
   
       bb13: {
--         StorageDead(_32);
+          StorageDead(_32);
           StorageDead(_31);
           _0 = const ();
           StorageDead(_18);