diff options
author | Nirav Dave <niravd@google.com> | 2018-02-10 02:41:22 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2018-02-10 02:41:22 +0000 |
commit | c8c9d4fe350f7a261219bf7b57b02425c8d389b3 (patch) | |
tree | a3e85f4138d19cf0045a32f6bbf713c14c455088 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 5a281bba40a8ea24aa31b149da0de7fc0e445445 (diff) | |
download | bcm5719-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.cpp | 3 |
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) |