summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff')
-rw-r--r--tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff b/tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff
new file mode 100644
index 000000000..6e4517868
--- /dev/null
+++ b/tests/mir-opt/reference_prop.multiple_storage.ReferencePropagation.diff
@@ -0,0 +1,27 @@
+- // MIR for `multiple_storage` before ReferencePropagation
++ // MIR for `multiple_storage` after ReferencePropagation
+
+ fn multiple_storage() -> () {
+ let mut _0: (); // return place in scope 0 at $DIR/reference_prop.rs:+0:23: +0:23
+ let mut _1: i32; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+ let mut _2: &i32; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+ let mut _3: i32; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+
+ bb0: {
+ StorageLive(_1); // scope 0 at $DIR/reference_prop.rs:+6:13: +6:27
+ _1 = const 5_i32; // scope 0 at $DIR/reference_prop.rs:+7:13: +7:18
+ _2 = &_1; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+ StorageDead(_1); // scope 0 at $DIR/reference_prop.rs:+9:13: +9:27
+ StorageLive(_1); // scope 0 at $DIR/reference_prop.rs:+10:13: +10:27
+ _3 = (*_2); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
+ _0 = opaque::<i32>(_3) -> bb1; // scope 0 at $DIR/reference_prop.rs:+14:13: +14:43
+ // mir::Constant
+ // + span: $DIR/reference_prop.rs:429:33: 429:39
+ // + literal: Const { ty: fn(i32) {opaque::<i32>}, val: Value(<ZST>) }
+ }
+
+ bb1: {
+ return; // scope 0 at $DIR/reference_prop.rs:+18:13: +18:21
+ }
+ }
+