[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:47 PDT 2023
================
@@ -538,6 +542,12 @@ class LoopVectorizationLegality {
/// BFI and PSI are used to check for profile guided size optimizations.
BlockFrequencyInfo *BFI;
ProfileSummaryInfo *PSI;
+
+ /// If we discover function calls within the loop which have a valid
+ /// vectorized variant, record that fact so that LoopVectorize can
+ /// (potentially) make a better decision on the maximum VF and enable
+ /// the use of those function variants.
+ bool VecVariantsFound = false;
----------------
david-arm wrote:
Perhaps this is just me, but I find the name a bit too vague because it doesn't refer to variants of what exactly. How about calling it something like 'VecCallVariantsFound'?
https://github.com/llvm/llvm-project/pull/66639
More information about the llvm-commits
mailing list