[llvm] [RISCV][LoopVectorize] Use DataWithEVL as the preferred tail folding style (PR #148686)
    Alexey Bataev via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jul 14 10:56:31 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;
----------------
alexey-bataev wrote:
I would keep the check and enable DataWithEVL if RVV is enabled
https://github.com/llvm/llvm-project/pull/148686
    
    
More information about the llvm-commits
mailing list