blob: 9098376ba46a5b6185d9f9330bf2716746211ee5 [file] [log] [blame]
Chris Lattnerb6e2b7e2005-09-19 23:48:04 +00001; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1'
2declare void %f1()
3declare void %f2()
4declare void %f3()
5declare void %f4()
6
7implementation
8
9int %test2(int %X, bool %D) {
10E:
11 %C = seteq int %X, 0
12 br bool %C, label %T, label %F
13T:
14 %P = phi bool [true, %E], [%C, %A]
15 br bool %P, label %B, label %A
16A:
17 call void %f1()
18 br bool %D, label %T, label %F
19B:
20 call void %f2()
21 ret int 345
22F:
23 call void %f3()
24 ret int 123
25}
26