summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-13 18:48:15 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-13 18:48:15 +0000
commit0f791f44c72bc5b52dfb31bcf6b6fe4f411d5fd2 (patch)
tree8c8b7e6b25ae2061b509f3fcbe9f6de0f2731c5f /llvm/test/CodeGen
parenta87b766027322ef8e2fed8843aad5df67a9ecf68 (diff)
downloadbcm5719-llvm-0f791f44c72bc5b52dfb31bcf6b6fe4f411d5fd2.tar.gz
bcm5719-llvm-0f791f44c72bc5b52dfb31bcf6b6fe4f411d5fd2.zip
[Hexagon] Remove dead nodes from SelectionDAG to avoid cycles
Recent changes to the instruction selection code exposed a problem where a dead node was not removed on time. This node had both input and output chains, which lead to an apparent cycle. llvm-svn: 269458
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Hexagon/circ-load-isel.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/circ-load-isel.ll b/llvm/test/CodeGen/Hexagon/circ-load-isel.ll
new file mode 100644
index 00000000000..576fbdf53cf
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/circ-load-isel.ll
@@ -0,0 +1,18 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+; CHECK: = memw{{.*}}circ
+
+target triple = "hexagon"
+
+@l = external global i32, align 4
+
+; Function Attrs: nounwind optsize
+define void @circ2() #0 {
+entry:
+ store i32 0, i32* @l, align 4
+ %0 = tail call i8* @llvm.hexagon.circ.ldw(i8* undef, i8* undef, i32 150995968, i32 4)
+ unreachable
+}
+
+declare i8* @llvm.hexagon.circ.ldw(i8*, i8*, i32, i32) #1
+attributes #0 = { nounwind optsize }
+attributes #1 = { argmemonly nounwind }
OpenPOWER on IntegriCloud