[PATCH] D144382: [SCEV] Increase FoldID bits size cover common cases.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 04:50:20 PST 2023


fhahn created this revision.
fhahn added reviewers: vitalybuka, nikic, mkazantsev.
Herald added subscribers: StephenFan, javed.absar.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

This should fix the regressions introduced by a53d940cee6f <https://reviews.llvm.org/rGa53d940cee6f281ef1a20d4f0fb39b23b4e98614>, while
retaining support for arbitrary SCEV expressions.

Alternative to D144335 <https://reviews.llvm.org/D144335>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144382

Files:
  llvm/include/llvm/Analysis/ScalarEvolution.h


Index: llvm/include/llvm/Analysis/ScalarEvolution.h
===================================================================
--- llvm/include/llvm/Analysis/ScalarEvolution.h
+++ llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -1297,7 +1297,7 @@
   bool loopIsFiniteByAssumption(const Loop *L);
 
   class FoldID {
-    SmallVector<unsigned, 4> Bits;
+    SmallVector<unsigned, 6> Bits;
 
   public:
     void addInteger(unsigned long I) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144382.498801.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230220/48c35d38/attachment.bin>


More information about the llvm-commits mailing list