[PATCH] D110558: [DebugInfo][LoopStrengthReduction] Prevent attempts to translate long SCEV expressions

Chris Jackson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 27 08:20:00 PDT 2021


chrisjackson created this revision.
chrisjackson added reviewers: aprantl, dblaikie, jmorse, StephenTozer, Orlandoguem, Orlando, TWeaver.
chrisjackson added a project: debug-info.
Herald added subscribers: ormris, javed.absar, hiraditya.
chrisjackson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As reported in pr51656 <https://bugs.llvm.org/show_bug.cgi?id=51656> scev-based salvaging can use excessive resources to the point of crashing when large SCEV expressions are encountered. This patch places a limit on the length of expression for which an attempt to translate will be made.


https://reviews.llvm.org/D110558

Files:
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
  llvm/test/Transforms/LoopStrengthReduce/pr51656.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110558.375271.patch
Type: text/x-patch
Size: 9183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210927/2473dbcc/attachment.bin>


More information about the llvm-commits mailing list