[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer (PR #76172)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 08:36:34 PST 2024


================
@@ -4690,6 +4712,39 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
   // FIXME: look for a smaller MaxVF that does divide TC rather than masking.
   if (Legal->prepareToFoldTailByMasking()) {
----------------
fhahn wrote:

> The logic of this method is getting excessively complicated.
> Suggest to turn this into an early-exiting if (!Legal->prepareToFoldTailByMasking()) https://reviews.llvm.org/D99750?id=558054#inline-1551712

https://github.com/llvm/llvm-project/pull/76172


More information about the llvm-commits mailing list