[llvm] cc5ee85 - [LV] Doxygenize VectorizationFactor member comments (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 25 10:41:49 PDT 2021
Author: Florian Hahn
Date: 2021-06-25T18:35:00+01:00
New Revision: cc5ee857f93748c392e38ea38b900847a6e8d6f2
URL: https://github.com/llvm/llvm-project/commit/cc5ee857f93748c392e38ea38b900847a6e8d6f2
DIFF: https://github.com/llvm/llvm-project/commit/cc5ee857f93748c392e38ea38b900847a6e8d6f2.diff
LOG: [LV] Doxygenize VectorizationFactor member comments (NFC).
Minor cleanup for follow-up patch.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
index fbb1b5707acb..2213e73b21e4 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
@@ -176,17 +176,17 @@ class VPBuilder {
/// VectorizerParams::VectorizationFactor and VectorizationCostTy.
/// We need to streamline them.
-/// Information about vectorization costs
+/// Information about vectorization costs.
struct VectorizationFactor {
- // Vector width with best cost
+ /// Vector width with best cost.
ElementCount Width;
- // Cost of the loop with that width
+ /// Cost of the loop with that width.
InstructionCost Cost;
VectorizationFactor(ElementCount Width, InstructionCost Cost)
: Width(Width), Cost(Cost) {}
- // Width 1 means no vectorization, cost 0 means uncomputed cost.
+ /// Width 1 means no vectorization, cost 0 means uncomputed cost.
static VectorizationFactor Disabled() {
return {ElementCount::getFixed(1), 0};
}
More information about the llvm-commits
mailing list