[llvm] [LV][NFC]Preselect folding style before choosing maxing VF, NFC. (PR #81885)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 14:24:38 PST 2024
================
@@ -4632,10 +4644,9 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
// found modulo the vectorization factor is not zero, try to fold the tail
// by masking.
// FIXME: look for a smaller MaxVF that does divide TC rather than masking.
- if (Legal->prepareToFoldTailByMasking()) {
- CanFoldTailByMasking = true;
+ selectTailFoldinStyle();
----------------
fhahn wrote:
Can this be moved before computing the max VF, i.e. outside this function?
https://github.com/llvm/llvm-project/pull/81885
More information about the llvm-commits
mailing list