diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-04-25 11:01:43 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-04-27 15:16:12 +0200 |
| commit | a2fdc9468600797762cf7cb7ad4fe32e05c3373e (patch) | |
| tree | c14bc3743160b2088f92018d56f0c6d3aa057ac2 /src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir | |
| parent | d81f5597ac081707346ac68f6938ad6282fc2fee (diff) | |
| download | rust-a2fdc9468600797762cf7cb7ad4fe32e05c3373e.tar.gz rust-a2fdc9468600797762cf7cb7ad4fe32e05c3373e.zip | |
Emit basic block ids for statements and terminators in MIR only in -Zverbose mode
Diffstat (limited to 'src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir')
| -rw-r--r-- | src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir b/src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir index 5d9c1f6b230..3ddf82c2fb2 100644 --- a/src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir +++ b/src/test/mir-opt/while-storage/rustc.while_loop.PreCodegen.after.mir @@ -9,10 +9,10 @@ fn while_loop(_1: bool) -> () { let mut _5: bool; // in scope 0 at $DIR/while-storage.rs:11:21: 11:22 bb0: { - StorageLive(_2); // bb0[0]: scope 0 at $DIR/while-storage.rs:10:11: 10:22 - StorageLive(_3); // bb0[1]: scope 0 at $DIR/while-storage.rs:10:20: 10:21 - _3 = _1; // bb0[2]: scope 0 at $DIR/while-storage.rs:10:20: 10:21 - _2 = const get_bool(move _3) -> bb1; // bb0[3]: scope 0 at $DIR/while-storage.rs:10:11: 10:22 + StorageLive(_2); // scope 0 at $DIR/while-storage.rs:10:11: 10:22 + StorageLive(_3); // scope 0 at $DIR/while-storage.rs:10:20: 10:21 + _3 = _1; // scope 0 at $DIR/while-storage.rs:10:20: 10:21 + _2 = const get_bool(move _3) -> bb1; // scope 0 at $DIR/while-storage.rs:10:11: 10:22 // ty::Const // + ty: fn(bool) -> bool {get_bool} // + val: Value(Scalar(<ZST>)) @@ -22,26 +22,26 @@ fn while_loop(_1: bool) -> () { } bb1: { - StorageDead(_3); // bb1[0]: scope 0 at $DIR/while-storage.rs:10:21: 10:22 - switchInt(_2) -> [false: bb2, otherwise: bb3]; // bb1[1]: scope 0 at $DIR/while-storage.rs:10:5: 14:6 + StorageDead(_3); // scope 0 at $DIR/while-storage.rs:10:21: 10:22 + switchInt(_2) -> [false: bb2, otherwise: bb3]; // scope 0 at $DIR/while-storage.rs:10:5: 14:6 } bb2: { - _0 = const (); // bb2[0]: scope 0 at $DIR/while-storage.rs:10:5: 14:6 + _0 = const (); // scope 0 at $DIR/while-storage.rs:10:5: 14:6 // ty::Const // + ty: () // + val: Value(Scalar(<ZST>)) // mir::Constant // + span: $DIR/while-storage.rs:10:5: 14:6 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } - goto -> bb7; // bb2[1]: scope 0 at $DIR/while-storage.rs:10:5: 14:6 + goto -> bb7; // scope 0 at $DIR/while-storage.rs:10:5: 14:6 } bb3: { - StorageLive(_4); // bb3[0]: scope 0 at $DIR/while-storage.rs:11:12: 11:23 - StorageLive(_5); // bb3[1]: scope 0 at $DIR/while-storage.rs:11:21: 11:22 - _5 = _1; // bb3[2]: scope 0 at $DIR/while-storage.rs:11:21: 11:22 - _4 = const get_bool(move _5) -> bb4; // bb3[3]: scope 0 at $DIR/while-storage.rs:11:12: 11:23 + StorageLive(_4); // scope 0 at $DIR/while-storage.rs:11:12: 11:23 + StorageLive(_5); // scope 0 at $DIR/while-storage.rs:11:21: 11:22 + _5 = _1; // scope 0 at $DIR/while-storage.rs:11:21: 11:22 + _4 = const get_bool(move _5) -> bb4; // scope 0 at $DIR/while-storage.rs:11:12: 11:23 // ty::Const // + ty: fn(bool) -> bool {get_bool} // + val: Value(Scalar(<ZST>)) @@ -51,30 +51,30 @@ fn while_loop(_1: bool) -> () { } bb4: { - StorageDead(_5); // bb4[0]: scope 0 at $DIR/while-storage.rs:11:22: 11:23 - switchInt(_4) -> [false: bb5, otherwise: bb6]; // bb4[1]: scope 0 at $DIR/while-storage.rs:11:9: 13:10 + StorageDead(_5); // scope 0 at $DIR/while-storage.rs:11:22: 11:23 + switchInt(_4) -> [false: bb5, otherwise: bb6]; // scope 0 at $DIR/while-storage.rs:11:9: 13:10 } bb5: { - StorageDead(_4); // bb5[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6 - StorageDead(_2); // bb5[1]: scope 0 at $DIR/while-storage.rs:14:5: 14:6 - goto -> bb0; // bb5[2]: scope 0 at $DIR/while-storage.rs:10:5: 14:6 + StorageDead(_4); // scope 0 at $DIR/while-storage.rs:14:5: 14:6 + StorageDead(_2); // scope 0 at $DIR/while-storage.rs:14:5: 14:6 + goto -> bb0; // scope 0 at $DIR/while-storage.rs:10:5: 14:6 } bb6: { - _0 = const (); // bb6[0]: scope 0 at $DIR/while-storage.rs:12:13: 12:18 + _0 = const (); // scope 0 at $DIR/while-storage.rs:12:13: 12:18 // ty::Const // + ty: () // + val: Value(Scalar(<ZST>)) // mir::Constant // + span: $DIR/while-storage.rs:12:13: 12:18 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } - StorageDead(_4); // bb6[1]: scope 0 at $DIR/while-storage.rs:14:5: 14:6 - goto -> bb7; // bb6[2]: scope 0 at $DIR/while-storage.rs:12:13: 12:18 + StorageDead(_4); // scope 0 at $DIR/while-storage.rs:14:5: 14:6 + goto -> bb7; // scope 0 at $DIR/while-storage.rs:12:13: 12:18 } bb7: { - StorageDead(_2); // bb7[0]: scope 0 at $DIR/while-storage.rs:14:5: 14:6 - return; // bb7[1]: scope 0 at $DIR/while-storage.rs:15:2: 15:2 + StorageDead(_2); // scope 0 at $DIR/while-storage.rs:14:5: 14:6 + return; // scope 0 at $DIR/while-storage.rs:15:2: 15:2 } } |
