1 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1' &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -adce -disable-output
10 int %test1(int %X, bool %D) {
13 br bool %C, label %T, label %F
15 br bool %C, label %B, label %A
18 br bool %D, label %T, label %F
27 int %test2(int %X, bool %D) {
30 br bool %C, label %T, label %F
32 %P = phi bool [true, %E], [%C, %A]
33 br bool %P, label %B, label %A
36 br bool %D, label %T, label %F
45 int %test3(int %X, bool %D, int* %AP, int* %BP) {
48 br bool %C, label %T, label %F
50 call void %f3() ;; Inst in block.
52 store int %XX, int* %BP
53 br bool %C, label %B, label %A
56 br bool %D, label %T, label %F