summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-12-10 21:11:40 +0000
committerEric Christopher <echristo@apple.com>2009-12-10 21:11:40 +0000
commit4b91e0194b6be91da114e0d22dea61358b938760 (patch)
tree1909edb9769fcd910007a37349cee9534aab67d1 /llvm/test
parent4986588ddbfb963c87a12af04a42c3a2e7132c98 (diff)
downloadbcm5719-llvm-4b91e0194b6be91da114e0d22dea61358b938760.tar.gz
bcm5719-llvm-4b91e0194b6be91da114e0d22dea61358b938760.zip
Add a test for the fix in revision 91009.
llvm-svn: 91062
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll20
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
OpenPOWER on IntegriCloud