From a86ef2c8270f55be9e0fbbef0f5065819e25ff93 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 10 Nov 2021 15:23:39 -0800 Subject: [PATCH] [ComprehensiveBufferize] Fix a warning This patch fixes: mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp:2240:13: error: unused function 'checkAliasInfoConsistency' [-Werror,-Wunused-function] --- .../Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp index 675686f..db5a35e 100644 --- a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp +++ b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp @@ -2236,6 +2236,7 @@ LogicalResult mlir::linalg::eliminateInsertSliceAnchoredInitTensorOps( }); } +#ifndef NDEBUG /// Assert that the current bufferization decisions are consistent. static void checkAliasInfoConsistency(FuncOp funcOp, const DominanceInfo &domInfo, @@ -2253,6 +2254,7 @@ static void checkAliasInfoConsistency(FuncOp funcOp, "found read after write conflict before running analysis"); }); } +#endif LogicalResult mlir::linalg::runComprehensiveBufferize(ModuleOp moduleOp, -- 2.7.4