Skip to content

Instantly share code, notes, and snippets.

@scottcarr
Created August 9, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottcarr/30a4e087c1b5d891b855289e84a7ce1c to your computer and use it in GitHub Desktop.
Save scottcarr/30a4e087c1b5d891b855289e84a7ce1c to your computer and use it in GitHub Desktop.
// MIR for `test`
// node_id = 4
// pass_name = MoveUpPropagation
// disambiguator = after
fn test(arg0: &[u64; 8]) -> [u64; 8] {
scope 1 {
let var0: &[u64; 8]; // "a" in scope 1 at main.rs:3:13: 3:14
scope 2 {
scope 3 {
scope 4 {
}
}
}
}
bb0: {
var0 = arg0; // scope 0 at main.rs:3:13: 3:14
return = (*var0); // scope 1 at main.rs:4:13: 4:15
goto -> bb1; // scope 1 at main.rs:3:1: 8:2
}
bb1: {
return; // scope 1 at main.rs:3:1: 8:2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment