blob: bf35c2a4eaa5e48d25c08350471cf9e1ef60f75f [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
Chris Lattner62f565d2005-09-23 18:43:57 +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}