blob: b4a10b2699ffcd632c078aee0ba406a3900647a9 [file] [log] [blame]
Chris Lattner854c0862005-02-17 19:27:44 +00001; RUN: llvm-as < %s | 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}