summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff')
-rw-r--r--tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff80
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff b/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff
new file mode 100644
index 000000000..97ca82509
--- /dev/null
+++ b/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-abort.diff
@@ -0,0 +1,80 @@
+- // MIR for `f` before DestinationPropagation
++ // MIR for `f` after DestinationPropagation
+
+ fn f(_1: T) -> () {
+ debug a => _1;
+ let mut _0: ();
+ let _2: T;
+ let mut _3: bool;
+ let _4: ();
+ let mut _5: T;
+ let mut _6: T;
+ let _7: ();
+ let mut _8: T;
+ let mut _9: T;
+ scope 1 {
+- debug b => _2;
++ debug b => _1;
+ }
+
+ bb0: {
+- StorageLive(_2);
+- _2 = _1;
++ nop;
++ nop;
+ StorageLive(_3);
+ _3 = const false;
+- goto -> bb3;
++ goto -> bb1;
+ }
+
+ bb1: {
+- StorageLive(_4);
+- StorageLive(_5);
+- _5 = _1;
+- StorageLive(_6);
+- _6 = _2;
+- _4 = g::<T>(move _5, move _6) -> [return: bb2, unwind unreachable];
+- }
+-
+- bb2: {
+- StorageDead(_6);
+- StorageDead(_5);
+- StorageDead(_4);
+- _0 = const ();
+- goto -> bb5;
+- }
+-
+- bb3: {
+ StorageLive(_7);
+- StorageLive(_8);
+- _8 = _2;
++ nop;
++ nop;
+ StorageLive(_9);
+- _9 = _2;
+- _7 = g::<T>(move _8, move _9) -> [return: bb4, unwind unreachable];
++ _9 = _1;
++ _7 = g::<T>(move _1, move _9) -> [return: bb2, unwind unreachable];
+ }
+
+- bb4: {
++ bb2: {
+ StorageDead(_9);
+- StorageDead(_8);
++ nop;
+ StorageDead(_7);
+ _0 = const ();
+- goto -> bb5;
++ goto -> bb3;
+ }
+
+- bb5: {
++ bb3: {
+ StorageDead(_3);
+- StorageDead(_2);
++ nop;
+ return;
+ }
+ }
+