summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2018-02-10 02:41:22 +0000
committerNirav Dave <niravd@google.com>2018-02-10 02:41:22 +0000
commitc8c9d4fe350f7a261219bf7b57b02425c8d389b3 (patch)
treea3e85f4138d19cf0045a32f6bbf713c14c455088 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent5a281bba40a8ea24aa31b149da0de7fc0e445445 (diff)
downloadbcm5719-llvm-c8c9d4fe350f7a261219bf7b57b02425c8d389b3.tar.gz
bcm5719-llvm-c8c9d4fe350f7a261219bf7b57b02425c8d389b3.zip
[DAG] Make early exit hasPredecessorHelper return true. NFCI.
All uses conservatively assume in early exit case that it will be a predecessor. Changing default removes checking code in all uses. llvm-svn: 324797
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index ef307400d97..12282d92ed8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2430,9 +2430,6 @@ HandleMergeInputChains(SmallVectorImpl<SDNode*> &ChainNodesMatched,
for (auto *N : ChainNodesMatched)
if (SDNode::hasPredecessorHelper(N, Visited, Worklist, Max, true))
return SDValue();
- // Fail conservatively if we stopped searching early.
- if (Visited.size() >= Max)
- return SDValue();
// Return merged chain.
if (InputChains.size() == 1)
OpenPOWER on IntegriCloud