Skip to content

Commit 4e6ff75

Browse files
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7245:1: error: unused function 'planContainsAdditionalSimplifications' [-Werror,-Wunused-function]
1 parent a1e9b7e commit 4e6ff75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7241,7 +7241,7 @@ InstructionCost LoopVectorizationPlanner::cost(VPlan &Plan,
72417241
/// not have corresponding recipes in \p Plan and are not marked to be ignored
72427242
/// in \p CostCtx. This means the VPlan contains simplification that the legacy
72437243
/// cost-model did not account for.
7244-
static bool
7244+
[[maybe_unused]] static bool
72457245
planContainsAdditionalSimplifications(VPlan &Plan, ElementCount VF,
72467246
VPCostContext &CostCtx, Loop *TheLoop,
72477247
LoopVectorizationCostModel &CM) {

0 commit comments

Comments
 (0)