Add a new testcase which breaks the sinker because the loop canonnicalization

pass does not do a canonnicalization that the sinker wants.

llvm-svn: 10346
This commit is contained in:
Chris Lattner 2003-12-09 22:05:08 +00:00
parent b7924b166a
commit 720348331c
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
; This testcase checks to make sure the sinker does not cause problems with
; critical edges.
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep Exit
implementation ; Functions:
void %test() {
Entry:
br bool false, label %Loop, label %Exit
Loop:
%X = add int 0, 1
br bool false, label %Loop, label %Exit
Exit:
%Y = phi int [ 0, %Entry ], [ %X, %Loop ]
ret void
}