[PATCH] D61397: [DAGCombiner] Avoid creating large tokenfactors in visitTokenFactor
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 08:10:17 PDT 2019
fhahn marked an inline comment as done.
fhahn added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14852
RootNode = Ldn->getChain().getNode();
- for (auto I = RootNode->use_begin(), E = RootNode->use_end(); I != E; ++I)
+ for (auto I = RootNode->use_begin(), E = RootNode->use_end(); I != E; ++I) {
+ if (!MaxNumberOfNodesToCheck--)
----------------
niravd wrote:
> nit: fold this into the loop test and increment (MaxNumberOfNodesToCheck> 0 , --MaxNumberOfNodesToCheck)
>
> nit: Since we merge mainly powers of two, the limit should one or slightly higher (1025?)
Thanks, moved to a separate patch: D61511
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61397/new/
https://reviews.llvm.org/D61397
More information about the llvm-commits
mailing list