1 ; This test checks to make sure phi nodes are updated properly
3 ; RUN: llvm-as < %s | opt -tailduplicate -disable-output
5 define i32 @test(i1 %c, i32 %X, i32 %Y) {
8 %A = add i32 %X, %Y ; <i32> [#uses=1]
9 br i1 %c, label %T, label %F
11 br i1 %c, label %L, label %T
13 %V = phi i32 [ %A, %L ], [ 0, %F ] ; <i32> [#uses=1]