1 ; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
7 define i32 @test(i1 %cond, i1 %cond2, i1 %cond3) {
9 br i1 %cond, label %T1, label %F1
22 ; CHECK: %v1 = call i32 @f1()
23 ; CHECK-NEXT: %D = and i1 %cond2, %cond3
24 ; CHECK-NEXT: br i1 %D
25 %A = phi i1 [true, %T1], [false, %F1]
26 %B = phi i32 [%v1, %T1], [%v2, %F1]
27 %C = and i1 %A, %cond2
28 %D = and i1 %C, %cond3
29 br i1 %D, label %T2, label %F2