[llvm] [LoopVectorize] Vectorize fixed-order recurrence with vscale x 1. (PR #142772)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 02:59:46 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();
-
----------------
Mel-Chen wrote:

Sure, I think you're referring to this.
49e10c6bc370d44b57025cf4c1f295a74bc91cd1

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


More information about the llvm-commits mailing list