[llvm] r331888 - [DAGCombine] Change store merge candidates check cut off to 1024.

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 08:53:07 PDT 2018


Author: aemerson
Date: Wed May  9 08:53:06 2018
New Revision: 331888

URL: http://llvm.org/viewvc/llvm-project?rev=331888&view=rev
Log:
[DAGCombine] Change store merge candidates check cut off to 1024.

The previous value of 8192 resulted in severe compile time hits in
some pathological cases.

rdar://39781410

Differential Revision: https://reviews.llvm.org/D46581

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=331888&r1=331887&r2=331888&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed May  9 08:53:06 2018
@@ -13384,7 +13384,7 @@ bool DAGCombiner::checkMergeStoreCandida
 
   SmallPtrSet<const SDNode *, 16> Visited;
   SmallVector<const SDNode *, 8> Worklist;
-  unsigned int Max = 8192;
+  unsigned int Max = 1024;
   // Search Ops of store candidates.
   for (unsigned i = 0; i < NumStores; ++i) {
     SDNode *n = StoreNodes[i].MemNode;




More information about the llvm-commits mailing list