[llvm] [RISCV][LoopVectorize] Use DataWithEVL as the preferred tail folding style (PR #148686)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 11:12:17 PDT 2025
================
@@ -116,8 +116,7 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
}
TailFoldingStyle
getPreferredTailFoldingStyle(bool IVUpdateMayOverflow) const override {
- return ST->hasVInstructions() ? TailFoldingStyle::Data
- : TailFoldingStyle::DataWithoutLaneMask;
+ return TailFoldingStyle::DataWithEVL;
----------------
lukel97 wrote:
Good point, done in 34f34e279bd20e26dcc127bb3a866f9579f74f5d
https://github.com/llvm/llvm-project/pull/148686
More information about the llvm-commits
mailing list