blob: ae591a00be50e671e68b435cdef0b069bf19ce39 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
7int %test(bool %c, int %X, int %Y) {
8 br label %L
9
10L:
11 %A = add int %X, %Y
12 br bool %c, label %T, label %F
13
14F:
15 br bool %c, label %L, label %T
16
17T:
18 %V = phi int [%A, %L], [0, %F]
19 ret int %V
20}