Pass options by const ref in TestLinalgCodegenStrategy (NFC)

These aren't small object, fix Coverity report.
This commit is contained in:
Mehdi Amini 2022-01-17 23:16:18 +00:00
parent 26049b8ce3
commit e965d068e0
1 changed files with 6 additions and 6 deletions

View File

@ -55,9 +55,9 @@ struct TestLinalgCodegenStrategy
void runOnFunction() override;
void runStrategy(LinalgTilingAndFusionOptions tilingAndFusionOptions,
LinalgTilingOptions tilingOptions,
LinalgTilingOptions registerTilingOptions,
void runStrategy(const LinalgTilingAndFusionOptions &tilingAndFusionOptions,
const LinalgTilingOptions &tilingOptions,
const LinalgTilingOptions &registerTilingOptions,
LinalgPaddingOptions paddingOptions,
vector::VectorContractLowering vectorContractLowering,
vector::VectorTransferSplit vectorTransferSplit);
@ -168,9 +168,9 @@ struct TestLinalgCodegenStrategy
};
void TestLinalgCodegenStrategy::runStrategy(
LinalgTilingAndFusionOptions tilingAndFusionOptions,
LinalgTilingOptions tilingOptions,
LinalgTilingOptions registerTilingOptions,
const LinalgTilingAndFusionOptions &tilingAndFusionOptions,
const LinalgTilingOptions &tilingOptions,
const LinalgTilingOptions &registerTilingOptions,
LinalgPaddingOptions paddingOptions,
vector::VectorContractLowering vectorContractLowering,
vector::VectorTransferSplit vectorTransferSplit) {