blob: f13f82676b38706ad7e3e6b5a19629e7786cfc44 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep {br i1} | wc -l | grep 1
2
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}