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

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 07:56:57 PDT 2026


================
@@ -5790,14 +5814,78 @@ LoopVectorizationPlanner::computeBestVF() {
     return {VectorizationFactor::Disabled(), nullptr};
   // If there is a single VPlan with a single VF, return it directly.
   VPlan &FirstPlan = *VPlans[0];
+  auto IsUnprofitableOneScalarTail =
----------------
Stylie777 wrote:

I don't see any benefit of having it here, my feeling was it is directly related to computeBestVF for these use cases but as its a big lambda function I agree it would be cleaner for it to be a function, rather than a lambda.

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


More information about the llvm-commits mailing list