[llvm] 37dfc46 - [NFC] LoopVectorizationCostModel::getMaximizedVFForTarget(): clarify debug msg
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 17 11:08:11 PDT 2021
Author: Roman Lebedev
Date: 2021-06-17T21:07:34+03:00
New Revision: 37dfc467ac807bde4f221edbf304d9a46c9789b2
URL: https://github.com/llvm/llvm-project/commit/37dfc467ac807bde4f221edbf304d9a46c9789b2
DIFF: https://github.com/llvm/llvm-project/commit/37dfc467ac807bde4f221edbf304d9a46c9789b2.diff
LOG: [NFC] LoopVectorizationCostModel::getMaximizedVFForTarget(): clarify debug msg
This really isn't talking about vectors in general,
but only about either fixed or scalable vectors,
and it's pretty confusing to see it state
that there aren't any vectors :)
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index f2373f284370..9d8a116e6b85 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5964,7 +5964,9 @@ ElementCount LoopVectorizationCostModel::getMaximizedVFForTarget(
<< (MaxVectorElementCount * WidestType) << " bits.\n");
if (!MaxVectorElementCount) {
- LLVM_DEBUG(dbgs() << "LV: The target has no vector registers.\n");
+ LLVM_DEBUG(dbgs() << "LV: The target has no "
+ << (ComputeScalableMaxVF ? "scalable" : "fixed")
+ << " vector registers.\n");
return ElementCount::getFixed(1);
}
More information about the llvm-commits
mailing list