[llvm] [LV]Set tailfolding styles before computing feasible max VF. (PR #91403)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 12:48:45 PDT 2024
================
@@ -4198,15 +4212,17 @@ bool LoopVectorizationCostModel::runtimeChecksRequired() {
return false;
}
-ElementCount
-LoopVectorizationCostModel::getMaxLegalScalableVF(unsigned MaxSafeElements) {
+bool LoopVectorizationCostModel::isScalableVectorizationAllowed() {
+ if (IsScalableVectorizationAllowed)
+ return *IsScalableVectorizationAllowed;
+ IsScalableVectorizationAllowed = false;
----------------
fhahn wrote:
nit: newline above to more clearly separate this exit from the remainder
https://github.com/llvm/llvm-project/pull/91403
More information about the llvm-commits
mailing list