Skip to content

Commit

Permalink
Apply clang-tidy fixes for performance-unnecessary-value-param in Lin…
Browse files Browse the repository at this point in the history
…algStrategyPasses.cpp (NFC)
  • Loading branch information
joker-eph committed Jun 28, 2022
1 parent c2828b6 commit eafb18e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mlir/include/mlir/Dialect/Linalg/Passes.h
Expand Up @@ -130,7 +130,7 @@ createLinalgStrategyInterchangePass(
/// Create a LinalgStrategyPeelPass.
std::unique_ptr<OperationPass<func::FuncOp>> createLinalgStrategyPeelPass(
StringRef opName = "",
linalg::LinalgPeelOptions opt = linalg::LinalgPeelOptions(),
const linalg::LinalgPeelOptions &opt = linalg::LinalgPeelOptions(),
const linalg::LinalgTransformationFilter &filter =
linalg::LinalgTransformationFilter());

Expand Down
5 changes: 3 additions & 2 deletions mlir/lib/Dialect/Linalg/Transforms/LinalgStrategyPasses.cpp
Expand Up @@ -270,7 +270,7 @@ struct LinalgStrategyPeelPass

LinalgStrategyPeelPass(StringRef opName, LinalgPeelOptions opt,
LinalgTransformationFilter filt)
: options(opt), filter(std::move(filt)) {
: options(std::move(opt)), filter(std::move(filt)) {
this->anchorOpName.setValue(opName.str());
}

Expand Down Expand Up @@ -542,7 +542,8 @@ mlir::createLinalgStrategyInterchangePass(

/// Create a LinalgStrategyPeelPass.
std::unique_ptr<OperationPass<func::FuncOp>>
mlir::createLinalgStrategyPeelPass(StringRef opName, LinalgPeelOptions opt,
mlir::createLinalgStrategyPeelPass(StringRef opName,
const LinalgPeelOptions &opt,
const LinalgTransformationFilter &filter) {
return std::make_unique<LinalgStrategyPeelPass>(opName, opt, filter);
}
Expand Down

0 comments on commit eafb18e

Please sign in to comment.