Revert [DAGCombiner] Avoid creating large tokenfactors in visitTokenFactor

This reverts r360171 (git commit a9d6c32eaf). A repro showing the asan/msan failures is forthcoming.

llvm-svn: 360481
This commit is contained in:
Jordan Rupprecht 2019-05-10 23:20:02 +00:00
parent 18ba8947a6
commit 16c7fbd112
1 changed files with 2 additions and 3 deletions

View File

@ -1792,9 +1792,8 @@ SDValue DAGCombiner::visitTokenFactor(SDNode *N) {
TFs.push_back(N);
// Iterate through token factors. The TFs grows when new token factors are
// encountered. Limit number of nodes to inline, to avoid quadratic compile
// times.
for (unsigned i = 0; i < TFs.size() && Ops.size() <= 2048; ++i) {
// encountered.
for (unsigned i = 0; i < TFs.size(); ++i) {
SDNode *TF = TFs[i];
// Check each of the operands.