aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/ScalarEvolutionTest.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2022-02-02 23:31:07 -0800
committerAlina Sbirlea <asbirlea@google.com>2022-02-09 13:31:28 -0800
commit49ab760090514dcbf84bd9dc7429146c4ca578ef (patch)
treecb78b02f8db428533890d7068b87638e45acf2e7 /llvm/unittests/Analysis/ScalarEvolutionTest.cpp
parent9a9bf12c4a10aa87f15463fbe0021f99012a88df (diff)
downloadllvm-49ab760090514dcbf84bd9dc7429146c4ca578ef.zip
llvm-49ab760090514dcbf84bd9dc7429146c4ca578ef.tar.gz
llvm-49ab760090514dcbf84bd9dc7429146c4ca578ef.tar.bz2
[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 looks reasonable. Differential Revision: https://reviews.llvm.org/D118877
Diffstat (limited to 'llvm/unittests/Analysis/ScalarEvolutionTest.cpp')
0 files changed, 0 insertions, 0 deletions