[PATCH] D118877: [DagCombine] Increase depth by number of operands to avoid a pathological compile time.

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 13:35:20 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG49ab76009051: [DagCombine] Increase depth by number of operands to avoid a pathological… (authored by asbirlea).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118877/new/

https://reviews.llvm.org/D118877

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


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -24037,7 +24037,7 @@
       }
       for (unsigned n = Chain.getNumOperands(); n;)
         Chains.push_back(Chain.getOperand(--n));
-      ++Depth;
+      Depth += Chain.getNumOperands();
       continue;
     }
     // Everything else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118877.407279.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/37f9682e/attachment.bin>


More information about the llvm-commits mailing list