[Mlir-commits] [mlir] a86ef2c - [ComprehensiveBufferize] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Wed Nov 10 15:23:47 PST 2021


Author: Kazu Hirata
Date: 2021-11-10T15:23:39-08:00
New Revision: a86ef2c8270f55be9e0fbbef0f5065819e25ff93

URL: https://github.com/llvm/llvm-project/commit/a86ef2c8270f55be9e0fbbef0f5065819e25ff93
DIFF: https://github.com/llvm/llvm-project/commit/a86ef2c8270f55be9e0fbbef0f5065819e25ff93.diff

LOG: [ComprehensiveBufferize] Fix a warning

This patch fixes:

  mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp:2240:13:
  error: unused function 'checkAliasInfoConsistency'
  [-Werror,-Wunused-function]

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp
index 675686fead27..db5a35e3d065 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,


        


More information about the Mlir-commits mailing list