Convert .cvsignore files
[oota-llvm.git] / test / Transforms / TailDup / PHIUpdateTest.ll
1 ; This test checks to make sure phi nodes are updated properly
2 ;
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate -disable-output
4
5
6
7 int %test(bool %c, int %X, int %Y) {
8         br label %L
9
10 L:
11         %A = add int %X, %Y
12         br bool %c, label %T, label %F
13
14 F:
15         br bool %c, label %L, label %T
16
17 T:
18         %V = phi int [%A, %L], [0, %F]
19         ret int %V
20 }