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

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

46 lines
2.0 KiB
Diff
Raw Normal View History

2022-10-07 06:59:26 -05:00
- // MIR for `main` before Inline
+ // MIR for `main` after Inline
fn main() -> () {
2022-11-02 16:54:49 -05:00
let mut _0: (); // return place in scope 0 at $DIR/asm_unwind.rs:+0:15: +0:15
let _1: (); // in scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
+ scope 1 (inlined foo) { // at $DIR/asm_unwind.rs:21:5: 21:10
+ let _2: D; // in scope 1 at $DIR/asm_unwind.rs:15:9: 15:11
2022-10-07 06:59:26 -05:00
+ scope 2 {
+ debug _d => const D; // in scope 2 at $DIR/asm_unwind.rs:15:9: 15:11
2022-10-07 06:59:26 -05:00
+ scope 3 {
+ }
+ }
+ }
bb0: {
2022-11-02 16:54:49 -05:00
StorageLive(_1); // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
- _1 = foo() -> bb1; // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
2022-10-07 06:59:26 -05:00
- // mir::Constant
2022-11-02 16:54:49 -05:00
- // + span: $DIR/asm_unwind.rs:21:5: 21:8
2022-10-07 06:59:26 -05:00
- // + literal: Const { ty: fn() {foo}, val: Value(<ZST>) }
2023-01-25 10:55:30 -06:00
+ StorageLive(_2); // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
+ asm!("", options(MAY_UNWIND)) -> [return: bb2, unwind: bb3]; // scope 3 at $DIR/asm_unwind.rs:16:14: 16:54
2022-10-07 06:59:26 -05:00
}
bb1: {
2023-01-25 10:55:30 -06:00
+ StorageDead(_2); // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
2022-11-02 16:54:49 -05:00
StorageDead(_1); // scope 0 at $DIR/asm_unwind.rs:+1:10: +1:11
_0 = const (); // scope 0 at $DIR/asm_unwind.rs:+0:15: +2:2
return; // scope 0 at $DIR/asm_unwind.rs:+2:2: +2:2
2022-10-07 06:59:26 -05:00
+ }
+
2023-01-25 10:55:30 -06:00
+ bb2: {
+ drop(_2) -> bb1; // scope 1 at $DIR/asm_unwind.rs:17:1: 17:2
+ }
+
2022-10-07 06:59:26 -05:00
+ bb3 (cleanup): {
2022-11-02 16:54:49 -05:00
+ drop(_2) -> bb4; // scope 1 at $DIR/asm_unwind.rs:17:1: 17:2
2022-10-07 06:59:26 -05:00
+ }
+
+ bb4 (cleanup): {
2022-11-02 16:54:49 -05:00
+ resume; // scope 1 at $DIR/asm_unwind.rs:14:1: 17:2
2022-10-07 06:59:26 -05:00
}
}