summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.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/reference_prop.unique_with_copies.ReferencePropagation.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/reference_prop.unique_with_copies.ReferencePropagation.diff')
-rw-r--r--tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.diff78
1 files changed, 36 insertions, 42 deletions
diff --git a/tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.diff b/tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.diff
index b754aff47..b4912a918 100644
--- a/tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.diff
+++ b/tests/mir-opt/reference_prop.unique_with_copies.ReferencePropagation.diff
@@ -2,66 +2,60 @@
+ // MIR for `unique_with_copies` after ReferencePropagation
fn unique_with_copies() -> () {
- let mut _0: (); // return place in scope 0 at $DIR/reference_prop.rs:+0:25: +0:25
- let _1: *mut i32; // in scope 0 at $DIR/reference_prop.rs:+1:9: +1:10
- let mut _2: i32; // in scope 0 at $DIR/reference_prop.rs:+2:13: +2:18
- let _4: (); // in scope 0 at $DIR/reference_prop.rs:+5:18: +5:28
- let mut _5: i32; // in scope 0 at $DIR/reference_prop.rs:+5:25: +5:27
- let _6: (); // in scope 0 at $DIR/reference_prop.rs:+9:14: +9:24
- let mut _7: i32; // in scope 0 at $DIR/reference_prop.rs:+9:21: +9:23
+ let mut _0: ();
+ let _1: *mut i32;
+ let mut _2: i32;
+ let _4: ();
+ let mut _5: i32;
+ let _6: ();
+ let mut _7: i32;
scope 1 {
-- debug y => _1; // in scope 1 at $DIR/reference_prop.rs:+1:9: +1:10
-+ debug y => _3; // in scope 1 at $DIR/reference_prop.rs:+1:9: +1:10
+- debug y => _1;
++ debug y => _3;
scope 5 {
}
}
scope 2 {
- debug a => _2; // in scope 2 at $DIR/reference_prop.rs:+2:13: +2:18
- let _3: *mut i32; // in scope 2 at $DIR/reference_prop.rs:+3:13: +3:14
+ debug a => _2;
+ let _3: *mut i32;
scope 3 {
- debug x => _3; // in scope 3 at $DIR/reference_prop.rs:+3:13: +3:14
+ debug x => _3;
scope 4 {
}
}
}
bb0: {
-- StorageLive(_1); // scope 0 at $DIR/reference_prop.rs:+1:9: +1:10
- StorageLive(_2); // scope 0 at $DIR/reference_prop.rs:+2:13: +2:18
- _2 = const 0_i32; // scope 0 at $DIR/reference_prop.rs:+2:21: +2:22
-- StorageLive(_3); // scope 2 at $DIR/reference_prop.rs:+3:13: +3:14
- _3 = &raw mut _2; // scope 2 at $DIR/reference_prop.rs:+3:17: +3:27
- StorageLive(_4); // scope 3 at $DIR/reference_prop.rs:+5:9: +5:30
- StorageLive(_5); // scope 4 at $DIR/reference_prop.rs:+5:25: +5:27
- _5 = (*_3); // scope 4 at $DIR/reference_prop.rs:+5:25: +5:27
- _4 = opaque::<i32>(move _5) -> bb1; // scope 4 at $DIR/reference_prop.rs:+5:18: +5:28
- // mir::Constant
- // + span: $DIR/reference_prop.rs:524:18: 524:24
- // + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
+- StorageLive(_1);
+ StorageLive(_2);
+ _2 = const 0_i32;
+- StorageLive(_3);
+ _3 = &raw mut _2;
+ StorageLive(_4);
+ StorageLive(_5);
+ _5 = (*_3);
+ _4 = opaque::<i32>(move _5) -> [return: bb1, unwind continue];
}
bb1: {
- StorageDead(_5); // scope 4 at $DIR/reference_prop.rs:+5:27: +5:28
- StorageDead(_4); // scope 3 at $DIR/reference_prop.rs:+5:30: +5:31
-- _1 = _3; // scope 3 at $DIR/reference_prop.rs:+6:9: +6:10
-- StorageDead(_3); // scope 2 at $DIR/reference_prop.rs:+7:5: +7:6
- StorageDead(_2); // scope 0 at $DIR/reference_prop.rs:+7:5: +7:6
- StorageLive(_6); // scope 1 at $DIR/reference_prop.rs:+9:5: +9:26
- StorageLive(_7); // scope 5 at $DIR/reference_prop.rs:+9:21: +9:23
-- _7 = (*_1); // scope 5 at $DIR/reference_prop.rs:+9:21: +9:23
-+ _7 = (*_3); // scope 5 at $DIR/reference_prop.rs:+9:21: +9:23
- _6 = opaque::<i32>(move _7) -> bb2; // scope 5 at $DIR/reference_prop.rs:+9:14: +9:24
- // mir::Constant
- // + span: $DIR/reference_prop.rs:528:14: 528:20
- // + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
+ StorageDead(_5);
+ StorageDead(_4);
+- _1 = _3;
+- StorageDead(_3);
+ StorageDead(_2);
+ StorageLive(_6);
+ StorageLive(_7);
+- _7 = (*_1);
++ _7 = (*_3);
+ _6 = opaque::<i32>(move _7) -> [return: bb2, unwind continue];
}
bb2: {
- StorageDead(_7); // scope 5 at $DIR/reference_prop.rs:+9:23: +9:24
- StorageDead(_6); // scope 1 at $DIR/reference_prop.rs:+9:26: +9:27
- _0 = const (); // scope 0 at $DIR/reference_prop.rs:+0:25: +10:2
-- StorageDead(_1); // scope 0 at $DIR/reference_prop.rs:+10:1: +10:2
- return; // scope 0 at $DIR/reference_prop.rs:+10:2: +10:2
+ StorageDead(_7);
+ StorageDead(_6);
+ _0 = const ();
+- StorageDead(_1);
+ return;
}
}