2009-12-14 20:07:25 +01:00
|
|
|
; Test for rdar://7452967
|
2009-12-10 22:11:40 +01:00
|
|
|
; RUN: opt < %s -licm -disable-output
|
|
|
|
define void @foo (i8* %v)
|
|
|
|
{
|
|
|
|
entry:
|
|
|
|
br i1 undef, label %preheader, label %return
|
2009-12-14 20:07:25 +01:00
|
|
|
|
2009-12-10 22:11:40 +01:00
|
|
|
preheader:
|
|
|
|
br i1 undef, label %loop, label %return
|
2009-12-14 20:07:25 +01:00
|
|
|
|
2009-12-10 22:11:40 +01:00
|
|
|
loop:
|
|
|
|
indirectbr i8* undef, [label %preheader, label %stuff]
|
2009-12-14 20:07:25 +01:00
|
|
|
|
2009-12-10 22:11:40 +01:00
|
|
|
stuff:
|
|
|
|
%0 = load i8* undef, align 1
|
|
|
|
br label %loop
|
2009-12-14 20:07:25 +01:00
|
|
|
|
2009-12-10 22:11:40 +01:00
|
|
|
return:
|
|
|
|
ret void
|
|
|
|
|
2009-12-14 20:07:25 +01:00
|
|
|
}
|