mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
58f8739d55
MIR dumped before/after the dummy `PreCodegen` pass should be identical to MIR dumped after the phase transition to `runtime-optimized`.
11 lines
274 B
Rust
11 lines
274 B
Rust
#![crate_type = "lib"]
|
|
|
|
// EMIT_MIR matchbr.match1.runtime-optimized.after.mir
|
|
pub fn match1(c: bool, v1: i32, v2: i32) -> i32 {
|
|
// CHECK-LABEL: fn match1(
|
|
// CHECK: bb0:
|
|
// CHECK-NEXT: _0 = Sub
|
|
// CHECK-NEXT: return;
|
|
if c { v1 - v2 } else { v1 - v2 }
|
|
}
|