We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb775c commit 2dd949eCopy full SHA for 2dd949e
tests/mir-opt/dest-prop/branch.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//! Tests that assignment in both branches of an `if` are eliminated.
4
//@ unit-test: DestinationPropagation
@@ -12,6 +11,8 @@ fn cond() -> bool {
12
11
13
// EMIT_MIR branch.foo.DestinationPropagation.diff
14
fn foo() -> i32 {
+ // CHECK-LABEL: fn foo
15
+ // CHECK-NOT: {{_.*}} = {{_.*}}
16
let x = val();
17
18
let y = if cond() {
0 commit comments