1 ; RUN: llvm-as < %s | opt -condprop | llvm-dis | not grep phi
5 define i32 @test(i32 %C) {
6 %Val = call i1 @foo( ) ; <i1> [#uses=2]
7 switch i32 %C, label %T1 [
24 Cont: ; preds = %T3, %T2, %T1
25 ;; PHI becomes dead after threading T2
26 %C2 = phi i1 [ %Val, %T1 ], [ true, %T2 ], [ %Val, %T3 ] ; <i1> [#uses=1]
27 br i1 %C2, label %L2, label %F2