blob: 08112b4b4668ff7d7e5961ab862ae699d26df69d [file] [log] [blame]
Chris Lattner578aa742003-06-22 20:32:35 +00001; This test checks to make sure phi nodes are updated properly
2;
3; RUN: as < %s | 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}