summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.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/sroa/structs.constant.ScalarReplacementOfAggregates.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/sroa/structs.constant.ScalarReplacementOfAggregates.diff')
-rw-r--r--tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.diff62
1 files changed, 31 insertions, 31 deletions
diff --git a/tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.diff
index 647681f0e..7ee043169 100644
--- a/tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.diff
+++ b/tests/mir-opt/sroa/structs.constant.ScalarReplacementOfAggregates.diff
@@ -2,45 +2,45 @@
+ // MIR for `constant` after ScalarReplacementOfAggregates
fn constant() -> () {
- let mut _0: (); // return place in scope 0 at $DIR/structs.rs:+0:15: +0:15
- let _1: (usize, u8); // in scope 0 at $DIR/structs.rs:+2:9: +2:10
-+ let _4: usize; // in scope 0 at $DIR/structs.rs:+2:9: +2:10
-+ let _5: u8; // in scope 0 at $DIR/structs.rs:+2:9: +2:10
+ let mut _0: ();
+ let _1: (usize, u8);
++ let _4: usize;
++ let _5: u8;
scope 1 {
-- debug y => _1; // in scope 1 at $DIR/structs.rs:+2:9: +2:10
-+ debug y => (usize, u8){ .0 => _4, .1 => _5, }; // in scope 1 at $DIR/structs.rs:+2:9: +2:10
- let _2: usize; // in scope 1 at $DIR/structs.rs:+3:9: +3:10
+- debug y => _1;
++ debug y => (usize, u8){ .0 => _4, .1 => _5, };
+ let _2: usize;
scope 2 {
- debug t => _2; // in scope 2 at $DIR/structs.rs:+3:9: +3:10
- let _3: u8; // in scope 2 at $DIR/structs.rs:+4:9: +4:10
+ debug t => _2;
+ let _3: u8;
scope 3 {
- debug u => _3; // in scope 3 at $DIR/structs.rs:+4:9: +4:10
+ debug u => _3;
}
}
}
bb0: {
-- StorageLive(_1); // scope 0 at $DIR/structs.rs:+2:9: +2:10
-+ StorageLive(_4); // scope 0 at $DIR/structs.rs:+2:9: +2:10
-+ StorageLive(_5); // scope 0 at $DIR/structs.rs:+2:9: +2:10
-+ nop; // scope 0 at $DIR/structs.rs:+2:9: +2:10
- _1 = const _; // scope 0 at $DIR/structs.rs:+2:13: +2:14
-+ _4 = move (_1.0: usize); // scope 1 at $DIR/structs.rs:+3:9: +3:10
-+ _5 = move (_1.1: u8); // scope 1 at $DIR/structs.rs:+3:9: +3:10
- StorageLive(_2); // scope 1 at $DIR/structs.rs:+3:9: +3:10
-- _2 = (_1.0: usize); // scope 1 at $DIR/structs.rs:+3:13: +3:16
-+ _2 = _4; // scope 1 at $DIR/structs.rs:+3:13: +3:16
- StorageLive(_3); // scope 2 at $DIR/structs.rs:+4:9: +4:10
-- _3 = (_1.1: u8); // scope 2 at $DIR/structs.rs:+4:13: +4:16
-+ _3 = _5; // scope 2 at $DIR/structs.rs:+4:13: +4:16
- _0 = const (); // scope 0 at $DIR/structs.rs:+0:15: +5:2
- StorageDead(_3); // scope 2 at $DIR/structs.rs:+5:1: +5:2
- StorageDead(_2); // scope 1 at $DIR/structs.rs:+5:1: +5:2
-- StorageDead(_1); // scope 0 at $DIR/structs.rs:+5:1: +5:2
-+ StorageDead(_4); // scope 0 at $DIR/structs.rs:+5:1: +5:2
-+ StorageDead(_5); // scope 0 at $DIR/structs.rs:+5:1: +5:2
-+ nop; // scope 0 at $DIR/structs.rs:+5:1: +5:2
- return; // scope 0 at $DIR/structs.rs:+5:2: +5:2
+- StorageLive(_1);
++ StorageLive(_4);
++ StorageLive(_5);
++ nop;
+ _1 = const _;
++ _4 = move (_1.0: usize);
++ _5 = move (_1.1: u8);
+ StorageLive(_2);
+- _2 = (_1.0: usize);
++ _2 = _4;
+ StorageLive(_3);
+- _3 = (_1.1: u8);
++ _3 = _5;
+ _0 = const ();
+ StorageDead(_3);
+ StorageDead(_2);
+- StorageDead(_1);
++ StorageDead(_4);
++ StorageDead(_5);
++ nop;
+ return;
}
}