[llvm] Add LoopVectorizer support for `llvm.vector.partial.reduce.fadd` (PR #163975)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 05:36:53 PST 2026


================
@@ -4061,7 +4061,8 @@ tryToMatchAndCreateExtendedReduction(VPReductionRecipe *Red, VPCostContext &Ctx,
             // here from LoopVectorize.cpp.
             ExtRedCost = Ctx.TTI.getPartialReductionCost(
                 Opcode, SrcTy, nullptr, RedTy, VF, ExtKind,
-                llvm::TargetTransformInfo::PR_None, std::nullopt, Ctx.CostKind);
+                llvm::TargetTransformInfo::PR_None, std::nullopt, Ctx.CostKind,
+                std::nullopt);
           } else {
             ExtRedCost = Ctx.TTI.getExtendedReductionCost(
----------------
sdesmalen-arm wrote:

nit: maybe add an assert here to ensure that the `ExtOpc != Instruction::CastOps::FPExt`.

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


More information about the llvm-commits mailing list