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