[llvm] [LV]Initial support for safe distance in predicated DataWithEVL vectorization mode. (PR #102897)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 12:23:59 PDT 2024
================
@@ -4106,15 +4133,11 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
if (Rem->isZero()) {
// Accept MaxFixedVF if we do not have a tail.
LLVM_DEBUG(dbgs() << "LV: No tail will remain for any chosen VF.\n");
+ disableTailFolding();
----------------
fhahn wrote:
> 2. I'm afraid there might be some side effects, if we'll keep tail-folding mode ON, while it is OFF. Better explicitly set it to OFF, I think
Agreed, I was suggesting if it is possible to keep `setTailFoldingStyles` at its original place and then try to maximize MaxScalableVF below where we already deal with the EVL case ( `if (getTailFoldingStyle() == TailFoldingStyle::DataWithEVL) {` below)
https://github.com/llvm/llvm-project/pull/102897
More information about the llvm-commits
mailing list