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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 07:37:18 PDT 2025


================
@@ -4526,6 +4506,253 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
   return false;
 }
 
+/// Get the VF scaling factor applied to the recipe's output, if the recipe has
----------------
lukel97 wrote:

Nit, I presume nothing changed in calculateRegisterUsage? To make the diff smaller you could forward declare calculateRegisterUsage so you don't need to move it. And then you could move it in a follow up NFC.

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


More information about the llvm-commits mailing list