[Mlir-commits] [mlir] 94f540c - [mlir][Linalg] Fix unused variable warning in Release builds. NFC.
Benjamin Kramer
llvmlistbot at llvm.org
Tue Feb 2 04:00:51 PST 2021
Author: Benjamin Kramer
Date: 2021-02-02T12:59:41+01:00
New Revision: 94f540cc7ceb98a25a62f04647ce30974a33a3d6
URL: https://github.com/llvm/llvm-project/commit/94f540cc7ceb98a25a62f04647ce30974a33a3d6
DIFF: https://github.com/llvm/llvm-project/commit/94f540cc7ceb98a25a62f04647ce30974a33a3d6.diff
LOG: [mlir][Linalg] Fix unused variable warning in Release builds. NFC.
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index 047e5ee045df..fc1266e3608a 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -442,6 +442,7 @@ void mlir::linalg::vectorizeLinalgOp(OpBuilder &builder, Operation *op) {
LLVM_DEBUG(dbgs() << dbgPref
<< "Rewrite linalg op as vector.transfer_read + " << *op);
auto status = vectorizeAsLinalgGeneric(builder, linalgOp);
+ (void)status;
assert(succeeded(status) &&
"Unexpected vectorization failed despite preconditions");
return;
@@ -473,6 +474,7 @@ void mlir::linalg::vectorizeLinalgOp(OpBuilder &builder, Operation *op) {
};
auto status =
vectorizeAsLinalgGeneric(builder, linalgOp, {vectorizeContraction});
+ (void)status;
assert(succeeded(status) &&
"Unexpected vectorization failed despite preconditions");
}
More information about the Mlir-commits
mailing list