summaryrefslogtreecommitdiff
path: root/test/Transforms/GVN
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-25 21:26:36 +0000
committerOwen Anderson <resistor@mac.com>2007-07-25 21:26:36 +0000
commit3dfcf33cf897b04c95e252bbd645e9930f608701 (patch)
tree40f24116ef3957d4a35c7e7e47e269c80b777b08 /test/Transforms/GVN
parent2e3d6b4a273f12a9121a040da1f9dcdccf88cba1 (diff)
downloadllvm-3dfcf33cf897b04c95e252bbd645e9930f608701.tar.gz
llvm-3dfcf33cf897b04c95e252bbd645e9930f608701.tar.bz2
llvm-3dfcf33cf897b04c95e252bbd645e9930f608701.tar.xz
Fix a bug in non-local memdep that was causing an infinite loop on 175.vpr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN')
-rw-r--r--test/Transforms/GVN/2007-07-25-Loop.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/GVN/2007-07-25-Loop.ll b/test/Transforms/GVN/2007-07-25-Loop.ll
new file mode 100644
index 0000000000..2efacb55a2
--- /dev/null
+++ b/test/Transforms/GVN/2007-07-25-Loop.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | opt -gvn | llvm-dis
+
+ %struct.s_segment_inf = type { float, i32, i16, i16, float, float, i32, float, float }
+
+define void @print_arch(i8* %arch_file, i32 %route_type, i64 %det_routing_arch.0.0, i64 %det_routing_arch.0.1, i64 %det_routing_arch.0.2, i64 %det_routing_arch.0.3, i64 %det_routing_arch.0.4, %struct.s_segment_inf* %segment_inf, i64 %timing_inf.0.0, i64 %timing_inf.0.1, i64 %timing_inf.0.2, i64 %timing_inf.0.3, i64 %timing_inf.0.4, i32 %timing_inf.1) {
+entry:
+ br i1 false, label %bb278, label %bb344
+
+bb278: ; preds = %bb278, %entry
+ br i1 false, label %bb278, label %bb344
+
+bb344: ; preds = %bb278, %entry
+ %tmp38758 = load i16* null, align 2 ; <i16> [#uses=0]
+ ret void
+}