blob: 36bfba4a404cdc903f9137b795ec24b06576d941 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's!
2; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep phi
3
4declare void %foo()
5int %test(bool %cond) {
6Entry:
7 br bool %cond, label %Inv, label %Cont
8Inv:
9 invoke void %foo() to label %Ok except label %Cont
10Ok:
11 br label %Cont
12Cont:
13 %X = phi int [0, %Entry], [1,%Ok], [0, %Inv]
14 ret int %X
15}