rust/tests/mir-opt/byte_slice.main.SimplifyCfg-pre-optimizations.after.mir

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

29 lines
557 B
Rust
Raw Normal View History

// MIR for `main` after SimplifyCfg-pre-optimizations
2020-04-02 21:09:01 +00:00
fn main() -> () {
2023-06-06 13:47:00 +00:00
let mut _0: ();
let _1: &[u8; 3];
2020-04-02 21:09:01 +00:00
scope 1 {
2023-06-06 13:47:00 +00:00
debug x => _1;
let _2: [u8; 2];
2020-04-02 21:09:01 +00:00
scope 2 {
2023-06-06 13:47:00 +00:00
debug y => _2;
2020-04-02 21:09:01 +00:00
}
}
bb0: {
2023-06-06 13:47:00 +00:00
StorageLive(_1);
_1 = const b"foo";
StorageLive(_2);
_2 = [const 5_u8, const 120_u8];
_0 = const ();
StorageDead(_2);
StorageDead(_1);
return;
2020-04-02 21:09:01 +00:00
}
}
2023-10-15 17:00:11 +00:00
ALLOC0 (size: 3, align: 1) {
2020-04-02 21:09:01 +00:00
66 6f 6f foo
}