[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer + adding new tail-folding mode using EVL. (PR #76172)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 14:07:57 PST 2024
================
@@ -1521,6 +1525,36 @@ class LoopVectorizationCostModel {
if (ForceTailFoldingStyle.getNumOccurrences()) {
ChosenTailFoldingStyle.first = ChosenTailFoldingStyle.second =
ForceTailFoldingStyle;
+ if (ChosenTailFoldingStyle.first == TailFoldingStyle::DataWithEVL) {
----------------
ayalz wrote:
nit: it may be clearer to check `if (ForceTailFoldingStyle == TailFoldingStyle::DataWithEVL)`, otherwise one may wonder what about `second`, which in this case must be the same as `first`. I.e., the style one forces is applied regardless of whether IV can wrap or not.
https://github.com/llvm/llvm-project/pull/76172
More information about the llvm-commits
mailing list