Created
September 19, 2016 18:14
-
-
Save pcwalton/815193a4c05140333560c94684969943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before | |
// START rustc.node13.Deaggregator.before.mir | |
// bb0: { | |
// var0 = arg0; // scope 0 at main.rs:8:8: 8:9 | |
// tmp0 = var0; // scope 1 at main.rs:9:14: 9:15 | |
// return = Baz { x: tmp0, y: const F32(0), z: const false }; // scope ... | |
// goto -> bb1; // scope 1 at main.rs:8:1: 10:2 | |
// } | |
// END rustc.node13.Deaggregator.before.mir | |
// START rustc.node13.Deaggregator.after.mir | |
// bb0: { | |
// var0 = arg0; // scope 0 at main.rs:8:8: 8:9 | |
// tmp0 = var0; // scope 1 at main.rs:9:14: 9:15 | |
// (return.0: usize) = tmp0; // scope 1 at main.rs:9:5: 9:34 | |
// (return.1: f32) = const F32(0); // scope 1 at main.rs:9:5: 9:34 | |
// (return.2: bool) = const false; // scope 1 at main.rs:9:5: 9:34 | |
// goto -> bb1; // scope 1 at main.rs:8:1: 10:2 | |
// } | |
// END rustc.node13.Deaggregator.after.mir | |
// after | |
// MIR for `bar` | |
// node_id = 13 | |
// pass_name = Deaggregator | |
// disambiguator = after | |
fn bar(arg0: usize) -> Baz { | |
scope 1 { | |
let var0: usize; // "a" in scope 1 at ../src/test/mir-opt/deaggregator_test.rs:17:8: 17:9 | |
} | |
let mut tmp0: usize; | |
bb0: { | |
nop; // scope 0 at ../src/test/mir-opt/deaggregator_test.rs:17:8: 17:9 | |
nop; // scope 0 at ../src/test/mir-opt/deaggregator_test.rs:17:8: 17:9 | |
nop; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:18:14: 18:15 | |
nop; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:18:14: 18:15 | |
return = Baz { x: arg0, y: const F32(0), z: const false }; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:18:5: 18:35 | |
nop; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:18:14: 18:15 | |
nop; // scope 0 at ../src/test/mir-opt/deaggregator_test.rs:17:8: 17:9 | |
goto -> bb1; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:17:1: 19:2 | |
} | |
bb1: { | |
return; // scope 1 at ../src/test/mir-opt/deaggregator_test.rs:17:1: 19:2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment