summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
commita0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch)
treefc451898ccaf445814e26b46664d78702178101d /tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff
parentAdding debian version 1.71.1+dfsg1-2. (diff)
downloadrustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz
rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff')
-rw-r--r--tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff
index ff1e30c2d..b5e39e632 100644
--- a/tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff
+++ b/tests/mir-opt/sroa/structs.enums.ScalarReplacementOfAggregates.diff
@@ -2,42 +2,42 @@
+ // MIR for `enums` after ScalarReplacementOfAggregates
fn enums(_1: usize) -> usize {
- debug a => _1; // in scope 0 at $DIR/structs.rs:+0:14: +0:15
- let mut _0: usize; // return place in scope 0 at $DIR/structs.rs:+0:27: +0:32
- let mut _2: std::option::Option<usize>; // in scope 0 at $DIR/structs.rs:+1:22: +1:29
- let mut _3: usize; // in scope 0 at $DIR/structs.rs:+1:27: +1:28
- let mut _4: isize; // in scope 0 at $DIR/structs.rs:+1:12: +1:19
+ debug a => _1;
+ let mut _0: usize;
+ let mut _2: std::option::Option<usize>;
+ let mut _3: usize;
+ let mut _4: isize;
scope 1 {
- debug a => _5; // in scope 1 at $DIR/structs.rs:+1:17: +1:18
- let _5: usize; // in scope 1 at $DIR/structs.rs:+1:17: +1:18
+ debug a => _5;
+ let _5: usize;
}
bb0: {
- StorageLive(_2); // scope 1 at $DIR/structs.rs:+1:22: +1:29
- StorageLive(_3); // scope 1 at $DIR/structs.rs:+1:27: +1:28
- _3 = _1; // scope 1 at $DIR/structs.rs:+1:27: +1:28
- _2 = Option::<usize>::Some(move _3); // scope 1 at $DIR/structs.rs:+1:22: +1:29
- StorageDead(_3); // scope 1 at $DIR/structs.rs:+1:28: +1:29
- _4 = discriminant(_2); // scope 1 at $DIR/structs.rs:+1:12: +1:19
- switchInt(move _4) -> [1: bb1, otherwise: bb2]; // scope 1 at $DIR/structs.rs:+1:12: +1:19
+ StorageLive(_2);
+ StorageLive(_3);
+ _3 = _1;
+ _2 = Option::<usize>::Some(move _3);
+ StorageDead(_3);
+ _4 = discriminant(_2);
+ switchInt(move _4) -> [1: bb1, otherwise: bb2];
}
bb1: {
- StorageLive(_5); // scope 1 at $DIR/structs.rs:+1:17: +1:18
- _5 = ((_2 as Some).0: usize); // scope 1 at $DIR/structs.rs:+1:17: +1:18
- _0 = _5; // scope 1 at $DIR/structs.rs:+1:32: +1:33
- StorageDead(_5); // scope 0 at $DIR/structs.rs:+1:34: +1:35
- goto -> bb3; // scope 0 at $DIR/structs.rs:+1:5: +1:46
+ StorageLive(_5);
+ _5 = ((_2 as Some).0: usize);
+ _0 = _5;
+ StorageDead(_5);
+ goto -> bb3;
}
bb2: {
- _0 = const 0_usize; // scope 0 at $DIR/structs.rs:+1:43: +1:44
- goto -> bb3; // scope 0 at $DIR/structs.rs:+1:5: +1:46
+ _0 = const 0_usize;
+ goto -> bb3;
}
bb3: {
- StorageDead(_2); // scope 0 at $DIR/structs.rs:+2:1: +2:2
- return; // scope 0 at $DIR/structs.rs:+2:2: +2:2
+ StorageDead(_2);
+ return;
}
}