summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff144
1 files changed, 72 insertions, 72 deletions
diff --git a/tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff
index b0b0da886..0a1de891a 100644
--- a/tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff
+++ b/tests/mir-opt/sroa/structs.copies.ScalarReplacementOfAggregates.diff
@@ -2,33 +2,33 @@
+ // MIR for `copies` after ScalarReplacementOfAggregates
fn copies(_1: Foo) -> () {
- debug x => _1; // in scope 0 at $DIR/structs.rs:+0:11: +0:12
- let mut _0: (); // return place in scope 0 at $DIR/structs.rs:+0:19: +0:19
- let _2: Foo; // in scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ let _11: u8; // in scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ let _12: (); // in scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ let _13: &str; // in scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ let _14: std::option::Option<isize>; // in scope 0 at $DIR/structs.rs:+1:9: +1:10
+ debug x => _1;
+ let mut _0: ();
+ let _2: Foo;
++ let _11: u8;
++ let _12: ();
++ let _13: &str;
++ let _14: std::option::Option<isize>;
scope 1 {
-- debug y => _2; // in scope 1 at $DIR/structs.rs:+1:9: +1:10
-+ debug y => Foo{ .0 => _11, .1 => _12, .2 => _13, .3 => _14, }; // in scope 1 at $DIR/structs.rs:+1:9: +1:10
- let _3: u8; // in scope 1 at $DIR/structs.rs:+2:9: +2:10
+- debug y => _2;
++ debug y => Foo{ .0 => _11, .1 => _12, .2 => _13, .3 => _14, };
+ let _3: u8;
scope 2 {
- debug t => _3; // in scope 2 at $DIR/structs.rs:+2:9: +2:10
- let _4: &str; // in scope 2 at $DIR/structs.rs:+3:9: +3:10
+ debug t => _3;
+ let _4: &str;
scope 3 {
- debug u => _4; // in scope 3 at $DIR/structs.rs:+3:9: +3:10
- let _5: Foo; // in scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ let _7: u8; // in scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ let _8: (); // in scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ let _9: &str; // in scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ let _10: std::option::Option<isize>; // in scope 3 at $DIR/structs.rs:+4:9: +4:10
+ debug u => _4;
+ let _5: Foo;
++ let _7: u8;
++ let _8: ();
++ let _9: &str;
++ let _10: std::option::Option<isize>;
scope 4 {
-- debug z => _5; // in scope 4 at $DIR/structs.rs:+4:9: +4:10
-+ debug z => Foo{ .0 => _7, .1 => _8, .2 => _9, .3 => _10, }; // in scope 4 at $DIR/structs.rs:+4:9: +4:10
- let _6: (); // in scope 4 at $DIR/structs.rs:+5:9: +5:10
+- debug z => _5;
++ debug z => Foo{ .0 => _7, .1 => _8, .2 => _9, .3 => _10, };
+ let _6: ();
scope 5 {
- debug a => _6; // in scope 5 at $DIR/structs.rs:+5:9: +5:10
+ debug a => _6;
}
}
}
@@ -36,56 +36,56 @@
}
bb0: {
-- StorageLive(_2); // scope 0 at $DIR/structs.rs:+1:9: +1:10
-- _2 = _1; // scope 0 at $DIR/structs.rs:+1:13: +1:14
-+ StorageLive(_11); // scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ StorageLive(_12); // scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ StorageLive(_13); // scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ StorageLive(_14); // scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ nop; // scope 0 at $DIR/structs.rs:+1:9: +1:10
-+ _11 = (_1.0: u8); // scope 0 at $DIR/structs.rs:+1:13: +1:14
-+ _12 = (_1.1: ()); // scope 0 at $DIR/structs.rs:+1:13: +1:14
-+ _13 = (_1.2: &str); // scope 0 at $DIR/structs.rs:+1:13: +1:14
-+ _14 = (_1.3: std::option::Option<isize>); // scope 0 at $DIR/structs.rs:+1:13: +1:14
-+ nop; // scope 0 at $DIR/structs.rs:+1:13: +1:14
- StorageLive(_3); // scope 1 at $DIR/structs.rs:+2:9: +2:10
-- _3 = (_2.0: u8); // scope 1 at $DIR/structs.rs:+2:13: +2:16
-+ _3 = _11; // scope 1 at $DIR/structs.rs:+2:13: +2:16
- StorageLive(_4); // scope 2 at $DIR/structs.rs:+3:9: +3:10
-- _4 = (_2.2: &str); // scope 2 at $DIR/structs.rs:+3:13: +3:16
-- StorageLive(_5); // scope 3 at $DIR/structs.rs:+4:9: +4:10
-- _5 = _2; // scope 3 at $DIR/structs.rs:+4:13: +4:14
-+ _4 = _13; // scope 2 at $DIR/structs.rs:+3:13: +3:16
-+ StorageLive(_7); // scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ StorageLive(_8); // scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ StorageLive(_9); // scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ StorageLive(_10); // scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ nop; // scope 3 at $DIR/structs.rs:+4:9: +4:10
-+ _7 = _11; // scope 3 at $DIR/structs.rs:+4:13: +4:14
-+ _8 = _12; // scope 3 at $DIR/structs.rs:+4:13: +4:14
-+ _9 = _13; // scope 3 at $DIR/structs.rs:+4:13: +4:14
-+ _10 = _14; // scope 3 at $DIR/structs.rs:+4:13: +4:14
-+ nop; // scope 3 at $DIR/structs.rs:+4:13: +4:14
- StorageLive(_6); // scope 4 at $DIR/structs.rs:+5:9: +5:10
-- _6 = (_5.1: ()); // scope 4 at $DIR/structs.rs:+5:13: +5:16
-+ _6 = _8; // scope 4 at $DIR/structs.rs:+5:13: +5:16
- _0 = const (); // scope 0 at $DIR/structs.rs:+0:19: +6:2
- StorageDead(_6); // scope 4 at $DIR/structs.rs:+6:1: +6:2
-- StorageDead(_5); // scope 3 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_7); // scope 3 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_8); // scope 3 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_9); // scope 3 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_10); // scope 3 at $DIR/structs.rs:+6:1: +6:2
-+ nop; // scope 3 at $DIR/structs.rs:+6:1: +6:2
- StorageDead(_4); // scope 2 at $DIR/structs.rs:+6:1: +6:2
- StorageDead(_3); // scope 1 at $DIR/structs.rs:+6:1: +6:2
-- StorageDead(_2); // scope 0 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_11); // scope 0 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_12); // scope 0 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_13); // scope 0 at $DIR/structs.rs:+6:1: +6:2
-+ StorageDead(_14); // scope 0 at $DIR/structs.rs:+6:1: +6:2
-+ nop; // scope 0 at $DIR/structs.rs:+6:1: +6:2
- return; // scope 0 at $DIR/structs.rs:+6:2: +6:2
+- StorageLive(_2);
+- _2 = _1;
++ StorageLive(_11);
++ StorageLive(_12);
++ StorageLive(_13);
++ StorageLive(_14);
++ nop;
++ _11 = (_1.0: u8);
++ _12 = (_1.1: ());
++ _13 = (_1.2: &str);
++ _14 = (_1.3: std::option::Option<isize>);
++ nop;
+ StorageLive(_3);
+- _3 = (_2.0: u8);
++ _3 = _11;
+ StorageLive(_4);
+- _4 = (_2.2: &str);
+- StorageLive(_5);
+- _5 = _2;
++ _4 = _13;
++ StorageLive(_7);
++ StorageLive(_8);
++ StorageLive(_9);
++ StorageLive(_10);
++ nop;
++ _7 = _11;
++ _8 = _12;
++ _9 = _13;
++ _10 = _14;
++ nop;
+ StorageLive(_6);
+- _6 = (_5.1: ());
++ _6 = _8;
+ _0 = const ();
+ StorageDead(_6);
+- StorageDead(_5);
++ StorageDead(_7);
++ StorageDead(_8);
++ StorageDead(_9);
++ StorageDead(_10);
++ nop;
+ StorageDead(_4);
+ StorageDead(_3);
+- StorageDead(_2);
++ StorageDead(_11);
++ StorageDead(_12);
++ StorageDead(_13);
++ StorageDead(_14);
++ nop;
+ return;
}
}