[PATCH] D130755: [LoopVectorize] Introduce trip count minimal value threshold to ignore tail-folding for scalable vectors

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 08:15:52 PDT 2022


paulwalker-arm added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10119-10122
       SEL = CM_ScalarEpilogueNotAllowedLowTripLoop;
+      if (TTI->getMinTripCountTailFoldingThreshold() &&
+          ExpectedTC <= TTI->getMinTripCountTailFoldingThreshold())
+        return false;
----------------
Can this be
```
if (*ExpectedTC > TTI->getMinTripCountTailFoldingThreshold())
  SEL = CM_ScalarEpilogueNotAllowedLowTripLoop
```
and still do what you need?


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

https://reviews.llvm.org/D130755



More information about the llvm-commits mailing list