rust/tests/mir-opt/inline/exponential_runtime.main.Inline.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
4.8 KiB
Diff
Raw Normal View History

2022-11-28 05:01:11 -06:00
- // MIR for `main` before Inline
+ // MIR for `main` after Inline
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/exponential_runtime.rs:+0:11: +0:11
let _1: (); // in scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
2023-04-05 03:44:20 -05:00
+ scope 1 (inlined <() as G>::call) { // at $DIR/exponential_runtime.rs:87:5: 87:22
+ let _2: (); // in scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ let _3: (); // in scope 1 at $DIR/exponential_runtime.rs:75:9: 75:25
+ let _4: (); // in scope 1 at $DIR/exponential_runtime.rs:76:9: 76:25
+ scope 2 (inlined <() as F>::call) { // at $DIR/exponential_runtime.rs:74:9: 74:25
+ let _5: (); // in scope 2 at $DIR/exponential_runtime.rs:62:9: 62:25
+ let _6: (); // in scope 2 at $DIR/exponential_runtime.rs:63:9: 63:25
+ let _7: (); // in scope 2 at $DIR/exponential_runtime.rs:64:9: 64:25
2023-01-02 00:01:29 -06:00
+ }
2022-11-28 05:01:11 -06:00
+ }
bb0: {
StorageLive(_1); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
- _1 = <() as G>::call() -> bb1; // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
2023-01-25 10:55:30 -06:00
+ StorageLive(_2); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
+ StorageLive(_3); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
+ StorageLive(_4); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
2023-04-05 03:44:20 -05:00
+ StorageLive(_5); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ StorageLive(_6); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ StorageLive(_7); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ _5 = <() as E>::call() -> bb4; // scope 2 at $DIR/exponential_runtime.rs:62:9: 62:25
2022-11-28 05:01:11 -06:00
// mir::Constant
2023-04-05 03:44:20 -05:00
- // + span: $DIR/exponential_runtime.rs:87:5: 87:20
2022-11-28 05:01:11 -06:00
- // + literal: Const { ty: fn() {<() as G>::call}, val: Value(<ZST>) }
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/exponential_runtime.rs:62:9: 62:23
2023-01-02 00:01:29 -06:00
+ // + literal: Const { ty: fn() {<() as E>::call}, val: Value(<ZST>) }
2022-11-28 05:01:11 -06:00
}
bb1: {
2023-01-25 10:55:30 -06:00
+ StorageDead(_4); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
+ StorageDead(_3); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
+ StorageDead(_2); // scope 0 at $DIR/exponential_runtime.rs:+1:5: +1:22
2022-11-28 05:01:11 -06:00
StorageDead(_1); // scope 0 at $DIR/exponential_runtime.rs:+1:22: +1:23
_0 = const (); // scope 0 at $DIR/exponential_runtime.rs:+0:11: +2:2
return; // scope 0 at $DIR/exponential_runtime.rs:+2:2: +2:2
2023-01-02 00:01:29 -06:00
+ }
+
2023-01-25 10:55:30 -06:00
+ bb2: {
2023-04-05 03:44:20 -05:00
+ StorageDead(_7); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ StorageDead(_6); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ StorageDead(_5); // scope 1 at $DIR/exponential_runtime.rs:74:9: 74:25
+ _3 = <() as F>::call() -> bb3; // scope 1 at $DIR/exponential_runtime.rs:75:9: 75:25
2023-01-25 10:55:30 -06:00
+ // mir::Constant
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/exponential_runtime.rs:75:9: 75:23
2023-01-25 10:55:30 -06:00
+ // + literal: Const { ty: fn() {<() as F>::call}, val: Value(<ZST>) }
+ }
+
2023-01-02 00:01:29 -06:00
+ bb3: {
2023-04-05 03:44:20 -05:00
+ _4 = <() as F>::call() -> bb1; // scope 1 at $DIR/exponential_runtime.rs:76:9: 76:25
2023-01-02 00:01:29 -06:00
+ // mir::Constant
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/exponential_runtime.rs:76:9: 76:23
2023-01-25 10:55:30 -06:00
+ // + literal: Const { ty: fn() {<() as F>::call}, val: Value(<ZST>) }
2023-01-02 00:01:29 -06:00
+ }
+
+ bb4: {
2023-04-05 03:44:20 -05:00
+ _6 = <() as E>::call() -> bb5; // scope 2 at $DIR/exponential_runtime.rs:63:9: 63:25
2023-01-02 00:01:29 -06:00
+ // mir::Constant
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/exponential_runtime.rs:63:9: 63:23
2023-01-02 00:01:29 -06:00
+ // + literal: Const { ty: fn() {<() as E>::call}, val: Value(<ZST>) }
+ }
+
+ bb5: {
2023-04-05 03:44:20 -05:00
+ _7 = <() as E>::call() -> bb2; // scope 2 at $DIR/exponential_runtime.rs:64:9: 64:25
2023-01-02 00:01:29 -06:00
+ // mir::Constant
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/exponential_runtime.rs:64:9: 64:23
2023-01-25 10:55:30 -06:00
+ // + literal: Const { ty: fn() {<() as E>::call}, val: Value(<ZST>) }
2022-11-28 05:01:11 -06:00
}
}