aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-25 22:03:06 +0000
committerOwen Anderson <resistor@mac.com>2007-07-25 22:03:06 +0000
commit0d16988690c44f2d7b3983dbf56739d83fb5fdfe (patch)
tree366f97ea5e9a93fd8bc9164cf0b88cfda4e6ead1 /test
parent02d6852a1c295030a8cff6b665c57e97c2624df5 (diff)
downloadexternal_llvm-0d16988690c44f2d7b3983dbf56739d83fb5fdfe.zip
external_llvm-0d16988690c44f2d7b3983dbf56739d83fb5fdfe.tar.gz
external_llvm-0d16988690c44f2d7b3983dbf56739d83fb5fdfe.tar.bz2
Fix an infinite loop on 300.twolf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/GVN/2007-07-25-InfiniteLoop.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/GVN/2007-07-25-InfiniteLoop.ll b/test/Transforms/GVN/2007-07-25-InfiniteLoop.ll
new file mode 100644
index 0000000..50eaf2f
--- /dev/null
+++ b/test/Transforms/GVN/2007-07-25-InfiniteLoop.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | opt -gvn | llvm-dis
+
+ %struct.INT2 = type { i32, i32 }
+@blkshifts = external global %struct.INT2* ; <%struct.INT2**> [#uses=2]
+
+define i32 @xcompact() {
+entry:
+ store %struct.INT2* null, %struct.INT2** @blkshifts, align 4
+ br label %bb
+
+bb: ; preds = %bb, %entry
+ %tmp10 = load %struct.INT2** @blkshifts, align 4 ; <%struct.INT2*> [#uses=0]
+ br label %bb
+}