1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

22 lines
369 B
LLVM

; Test for rdar://7452967
; 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, i8* undef, align 1
br label %loop
return:
ret void
}