From cc5ee857f93748c392e38ea38b900847a6e8d6f2 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 25 Jun 2021 15:57:25 +0100 Subject: [PATCH] [LV] Doxygenize VectorizationFactor member comments (NFC). Minor cleanup for follow-up patch. --- llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h index fbb1b57..2213e73 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h +++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h @@ -176,17 +176,17 @@ public: /// 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}; } -- 2.7.4