[llvm] [LV][NFC]Preselect folding style before choosing maxing VF, NFC. (PR #81885)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 08:19:25 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();
----------------
alexey-bataev wrote:
No, tried to do it - causes lots of the spurious error messages. computeMaxVF contains some early exits in the code above, which affects this function results.
https://github.com/llvm/llvm-project/pull/81885
More information about the llvm-commits
mailing list