Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
6 | int "test"(bool %C, int %A, int %B) { | ||||
7 | br bool %C, label %BB1, label %BB2 | ||||
8 | BB1: | ||||
9 | br label %BB2 | ||||
10 | BB2: | ||||
11 | %R = phi int [%A, %0], [%B, %BB1] | ||||
12 | ret int %R | ||||
13 | } |