[all-commits] [llvm/llvm-project] 49ab76: [DagCombine] Increase depth by number of operands ...
Alina Sbirlea via All-commits
all-commits at lists.llvm.org
Wed Feb 9 13:35:27 PST 2022
Author: Alina Sbirlea <asbirlea at google.com>
Date: 2022-02-09 (Wed, 09 Feb 2022)
[DagCombine] Increase depth by number of operands to avoid a pathological compile time.
We're hitting a pathological compile-time case, profiled to be in
DagCombiner::visitTokenFactor and many inserts into a SmallPtrSet.
It looks like one of the paths around findBetterNeighborChains is not
capped and leads to this.
This patch resolves the issue. Looking for feedback if this solution
Differential Revision: https://reviews.llvm.org/D118877
More information about the All-commits