[llvm] [LoopVectorize] Vectorize fixed-order recurrence with vscale x 1. (PR #142772)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 04:24:18 PDT 2025
================
@@ -6139,11 +6139,6 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I,
// First-order recurrences are replaced by vector shuffles inside the loop.
if (VF.isVector() && Legal->isFixedOrderRecurrence(Phi)) {
- // For <vscale x 1 x i64>, if vscale = 1 we are unable to extract the
----------------
ayalz wrote:
Does this imply that `VF.isVector()` returns true for single-element non-vector VF's when VF.isScalable() && VF.getKnownMinValue() == 1 and vscale == 1? The TODO is erased w/o considering vscale_range info?
https://github.com/llvm/llvm-project/pull/142772
More information about the llvm-commits
mailing list