Add a test for the fix in revision 91009.

llvm-svn: 91062
This commit is contained in:
Eric Christopher 2009-12-10 21:11:40 +00:00
parent 4986588ddb
commit 4b91e0194b
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
entry:
br i1 undef, label %preheader, label %return
preheader:
br i1 undef, label %loop, label %return
loop:
indirectbr i8* undef, [label %preheader, label %stuff]
stuff:
%0 = load i8* undef, align 1
br label %loop
return:
ret void
}