blob: cf9872e2e1169a6b56e32b0eed0eab3aee8487be [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; It is illegal to remove BB1 because it will mess up the PHI node!
2;
3; RUN: llvm-upgrade < %s | llvm-as | opt -adce | llvm-dis | grep BB1
4
5
6int "test"(bool %C, int %A, int %B) {
7 br bool %C, label %BB1, label %BB2
8BB1:
9 br label %BB2
10BB2:
11 %R = phi int [%A, %0], [%B, %BB1]
12 ret int %R
13}