Maybe this will keep people from breaking -branch-combine!

llvm-svn: 13928
This commit is contained in:
Brian Gaeke 2004-06-01 20:01:05 +00:00
parent ce1a3843b0
commit 7ed1d1b320
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
; Basic test of -branch-combine functionality
; RUN: llvm-as < %s | opt -branch-combine | llvm-dis | egrep 'newCommon:.*; preds =.*no_exit.1' | grep loopentry.2
target endian = big
target pointersize = 64
implementation ; Functions:
void %main() {
entry:
br bool false, label %__main.entry, label %endif.0.i
endif.0.i: ; preds = %entry
ret void
__main.entry: ; preds = %entry
br label %no_exit.1
no_exit.1: ; preds = %__main.entry, %no_exit.1, %loopentry.2
br bool false, label %loopentry.2, label %no_exit.1
loopentry.2: ; preds = %no_exit.1
br label %no_exit.1
}