Chris Lattner | 62f565d | 2005-09-23 18:43:57 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1 |
2 | |||||
3 | void %test(int* %P, int* %Q, bool %A, bool %B) { | ||||
4 | br bool %A, label %a, label %b ;; fold the two branches into one | ||||
5 | a: | ||||
6 | br bool %B, label %b, label %c | ||||
7 | b: | ||||
8 | store int 123, int* %P | ||||
9 | ret void | ||||
10 | c: | ||||
11 | ret void | ||||
12 | } |