[llvm] [LoopVectorize] Vectorize fixed-order recurrence with vscale x 1. (PR #142772)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 11 07:12:14 PDT 2025
================
@@ -3838,9 +3838,6 @@ VPFirstOrderRecurrencePHIRecipe::computeCost(ElementCount VF,
if (VF.isScalar())
return Ctx.TTI.getCFInstrCost(Instruction::PHI, Ctx.CostKind);
- if (VF.isScalable() && VF.getKnownMinValue() == 1)
- return InstructionCost::getInvalid();
-
----------------
david-arm wrote:
Perhaps you could have a loop with a combination of gathers and normal loads/stores with a dependency issue that limits the VF to vscale x 1. Requiring gather loads may then favour scalable vectors?
https://github.com/llvm/llvm-project/pull/142772
More information about the llvm-commits
mailing list