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

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 09:50:27 PDT 2022


dtemirbulatov marked an inline comment as done.
dtemirbulatov added inline comments.


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


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

https://reviews.llvm.org/D130755



More information about the llvm-commits mailing list