blob: aeea929903e61d5003cb79a3496c7126f4b8808e [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep {br i1} | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3void %test(int* %P, int* %Q, bool %A, bool %B) {
4 br bool %A, label %a, label %b ;; fold the two branches into one
5a:
6 br bool %B, label %b, label %c
7b:
8 store int 123, int* %P
9 ret void
10c:
11 ret void
12}