New testcase for PR223: Loopsimplify incorrectly updates dominator information

llvm-svn: 11136
This commit is contained in:
Chris Lattner 2004-02-05 21:11:38 +00:00
parent 1165c1081e
commit eba3c36f99
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
; RUN: llvm-as < %s | opt -loopsimplify -verify -licm -disable-output
implementation ; Functions:
void %.subst_48() {
entry:
br label %loopentry.0
loopentry.0: ; preds = %entry, %loopentry.0
br bool false, label %loopentry.0, label %loopentry.2
loopentry.2: ; preds = %loopentry.0, %loopentry.2
%tmp.968 = setle int 0, 3 ; <bool> [#uses=1]
br bool %tmp.968, label %loopentry.2, label %UnifiedReturnBlock
UnifiedReturnBlock: ; preds = %entry, %loopentry.2
ret void
}