[llvm] [LoopVectorizer] Prune VFs based on plan register pressure (PR #132190)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 07:01:44 PDT 2025


================
@@ -5027,6 +5025,9 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
         if (isa<VPVectorPointerRecipe, VPVectorEndPointerRecipe,
                 VPBranchOnMaskRecipe>(R))
           continue;
+        if (auto *Phi = dyn_cast<VPReductionPHIRecipe>(R);
----------------
SamTebbs33 wrote:

That's a much better way of dealing with it, thank you. Done.

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


More information about the llvm-commits mailing list