diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2019-05-10 23:20:02 +0000 |
|---|---|---|
| committer | Jordan Rupprecht <rupprecht@google.com> | 2019-05-10 23:20:02 +0000 |
| commit | 16c7fbd112d71ebd5f12545ef1d657ac807a705e (patch) | |
| tree | 569d82575ed231442de6fe13b464600f8b73da82 /llvm/lib | |
| parent | 18ba8947a6c2656b8d4eb2451b007ef2958712dc (diff) | |
| download | bcm5719-llvm-16c7fbd112d71ebd5f12545ef1d657ac807a705e.tar.gz bcm5719-llvm-16c7fbd112d71ebd5f12545ef1d657ac807a705e.zip | |
Revert [DAGCombiner] Avoid creating large tokenfactors in visitTokenFactor
This reverts r360171 (git commit a9d6c32eafc645c55b07eb50698c428e14c0bffd). A repro showing the asan/msan failures is forthcoming.
llvm-svn: 360481
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 61176bf624a..1d8f530f4c5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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. |

