[llvm] [LV] Support multiplies by constants when forming scaled reductions. (PR #161092)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 01:32:45 PDT 2025


================
@@ -340,6 +340,15 @@ VPPartialReductionRecipe::computeCost(ElementCount VF,
                                                  : Widen->getOperand(1));
     ExtAType = GetExtendKind(ExtAR);
     ExtBType = GetExtendKind(ExtBR);
+
+    if (!ExtBR && Widen->getOperand(1)->isLiveIn()) {
+      auto *CI =
----------------
fhahn wrote:

At the moment yes, updated, thanks!

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


More information about the llvm-commits mailing list