summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2018-09-25 15:29:57 +0000
committerNirav Dave <niravd@google.com>2018-09-25 15:29:57 +0000
commita2f514d6727f86416926b4017fac268ad8b7faba (patch)
tree37e0cf94ce4e1ebf8a201747fe4fabc7c616e070 /llvm/lib
parentf445a67be4a5ec1ef5f8c65553b3b974c41b0223 (diff)
downloadbcm5719-llvm-a2f514d6727f86416926b4017fac268ad8b7faba.tar.gz
bcm5719-llvm-a2f514d6727f86416926b4017fac268ad8b7faba.zip
[LegalizeDAG] Prune Predecessor check in ExpandExtractFromVectorThroughStack. NFCI.
llvm-svn: 342985
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index b6bd8541ac7..f9a0a6c565b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1248,6 +1248,7 @@ SDValue SelectionDAGLegalize::ExpandExtractFromVectorThroughStack(SDValue Op) {
// Caches for hasPredecessorHelper
SmallPtrSet<const SDNode *, 32> Visited;
SmallVector<const SDNode *, 16> Worklist;
+ Visited.insert(Op.getNode());
Worklist.push_back(Idx.getNode());
SDValue StackPtr, Ch;
for (SDNode::use_iterator UI = Vec.getNode()->use_begin(),
OpenPOWER on IntegriCloud