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

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 07:34:36 PST 2025


================
@@ -5820,6 +5828,9 @@ InstructionCost AArch64TTIImpl::getPartialReductionCost(
   if (VF.getKnownMinValue() <= Ratio)
     return Invalid;
 
+  if (Opcode == Instruction::FAdd && Ratio <= 1)
----------------
sdesmalen-arm wrote:

This seems superfluous.

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


More information about the llvm-commits mailing list