blob: a0c0705f3339efe70982c5a700b2065d96a2de14 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -adce | llvm-dis | not grep call
2
3; The call is not live just because the PHI uses the call retval!
4
5int %test(int %X) {
6 br label %Done
7
8DeadBlock:
9 %Y = call int %test(int 0)
10 br label %Done
11
12Done:
13 %Z = phi int [%X, %0], [%Y, %DeadBlock]
14 ret int %Z
15}