rust/tests/mir-opt/instsimplify/aggregate_array.strs.InstSimplify-after-simplifycfg.diff
2025-07-23 23:54:37 +00:00

18 lines
424 B
Diff

- // MIR for `strs` before InstSimplify-after-simplifycfg
+ // MIR for `strs` after InstSimplify-after-simplifycfg
fn strs() -> [&str; 5] {
let mut _0: [&str; 5];
bb0: {
- _0 = [const "a", const "a", const "a", const "a", const "a"];
+ _0 = [const "a"; 5];
return;
}
}
ALLOC0 (size: 1, align: 1) {
61 │ a
}