[llvm-commits] [llvm] r91062 - /llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll

Eric Christopher echristo at apple.com
Thu Dec 10 13:11:40 PST 2009


Author: echristo
Date: Thu Dec 10 15:11:40 2009
New Revision: 91062

URL: http://llvm.org/viewvc/llvm-project?rev=91062&view=rev
Log:
Add a test for the fix in revision 91009.

Added:
    llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll

Added: llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll?rev=91062&view=auto

==============================================================================
--- llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll (added)
+++ llvm/trunk/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll Thu Dec 10 15:11:40 2009
@@ -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





More information about the llvm-commits mailing list