[llvm] [LoopVectorize] Improve Vectorization of Small Loops (PR #195823)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 08:47:56 PDT 2026
================
@@ -3023,9 +3033,37 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
NoScalarEpilogueNeeded(MaxFactors.FixedVF.getFixedValue())) {
LLVM_DEBUG(dbgs() << "LV: Picking a fixed-width so that no tail will "
"remain for any chosen VF.\n");
- MaxFactors.ScalableVF = ElementCount::getScalable(0);
+ ApplyVectorWidth(MaxFactors, MaxFactors.FixedVF.getFixedValue(), 0);
----------------
Stylie777 wrote:
I've removed this and gone back to the original behaviour.
https://github.com/llvm/llvm-project/pull/195823
More information about the llvm-commits
mailing list