[llvm] [LoopVectorize] Improve Vectorization of Low Trip Count Loops (PR #195823)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 05:56:20 PDT 2026


================
@@ -5807,6 +5831,41 @@ InstructionCost LoopVectorizationPlanner::cost(VPlan &Plan, ElementCount VF,
   return Cost;
 }
 
+bool LoopVectorizationPlanner::isProfitableOneScalarTail(
----------------
Stylie777 wrote:

I've split this into two functions which should make it easier to understand the intention of each function, and how they operate when finding the bestVF

https://github.com/llvm/llvm-project/pull/195823


More information about the llvm-commits mailing list