[llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 07:35:05 PDT 2025


================
@@ -9137,8 +9155,8 @@ VPRecipeBase *VPRecipeBuilder::tryToCreateWidenRecipe(
   if (isa<LoadInst>(Instr) || isa<StoreInst>(Instr))
     return tryToWidenMemory(Instr, Operands, Range);
 
-  if (getScalingForReduction(Instr))
-    return tryToCreatePartialReduction(Instr, Operands);
+  if (auto ScaleFactor = getScalingForReduction(Instr))
----------------
SamTebbs33 wrote:

Done.

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


More information about the llvm-commits mailing list