[llvm] [LV] Increase max VF if vectorized function variants exist (PR #66639)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 08:28:48 PDT 2023
================
@@ -943,6 +948,12 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
}
}
+ // If we found a vectorized variant of a function, note that so LV can
+ // make better decisions about maximum VF.
+ if (CI && !VFDatabase::getMappings(*CI).empty() &&
+ UseWiderVFIfVariantsPresent)
----------------
david-arm wrote:
I think it's better to just always record if we found a variant. We're not really saving time by checking UseWiderVFIfVariantsPresent anyway.
https://github.com/llvm/llvm-project/pull/66639
More information about the llvm-commits
mailing list