diff options
-rw-r--r-- | llvm/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll b/llvm/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll new file mode 100644 index 00000000000..b350dfac375 --- /dev/null +++ b/llvm/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll @@ -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 + +}
\ No newline at end of file |