[llvm] f63c150 - Revert "[DagCombine] Increase depth by number of operands to avoid a pathological compile time."

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 13:55:45 PST 2022


Author: Reid Kleckner
Date: 2022-02-09T13:55:40-08:00
New Revision: f63c150187f14d8c3c9ae65ac2cd9e92c2d270fd

URL: https://github.com/llvm/llvm-project/commit/f63c150187f14d8c3c9ae65ac2cd9e92c2d270fd
DIFF: https://github.com/llvm/llvm-project/commit/f63c150187f14d8c3c9ae65ac2cd9e92c2d270fd.diff

LOG: Revert "[DagCombine] Increase depth by number of operands to avoid a pathological compile time."

Appears to be causing check-llvm to fail

This reverts commit 49ab760090514dcbf84bd9dc7429146c4ca578ef.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 954f30d4df4e7..8fd0001b4eb3f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -24037,7 +24037,7 @@ void DAGCombiner::GatherAllAliases(SDNode *N, SDValue OriginalChain,
       }
       for (unsigned n = Chain.getNumOperands(); n;)
         Chains.push_back(Chain.getOperand(--n));
-      Depth += Chain.getNumOperands();
+      ++Depth;
       continue;
     }
     // Everything else


        


More information about the llvm-commits mailing list