Skip to content

Commit

Permalink
[Vectorize] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7245:1: error:
  unused function 'planContainsAdditionalSimplifications'
  [-Werror,-Wunused-function]
  • Loading branch information
kazutakahirata committed Aug 22, 2024
1 parent a1e9b7e commit 4e6ff75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7241,7 +7241,7 @@ InstructionCost LoopVectorizationPlanner::cost(VPlan &Plan,
/// not have corresponding recipes in \p Plan and are not marked to be ignored
/// in \p CostCtx. This means the VPlan contains simplification that the legacy
/// cost-model did not account for.
static bool
[[maybe_unused]] static bool
planContainsAdditionalSimplifications(VPlan &Plan, ElementCount VF,
VPCostContext &CostCtx, Loop *TheLoop,
LoopVectorizationCostModel &CM) {
Expand Down

0 comments on commit 4e6ff75

Please sign in to comment.