[Mlir-commits] [mlir] 20c68d9 - [mlir] silence -Wunused-variable in release mode in Linalg transforms
Alex Zinenko
llvmlistbot at llvm.org
Tue Mar 23 10:59:50 PDT 2021
Author: Alex Zinenko
Date: 2021-03-23T18:59:12+01:00
New Revision: 20c68d9441cd74d7d628014cf9a846c275a36813
URL: https://github.com/llvm/llvm-project/commit/20c68d9441cd74d7d628014cf9a846c275a36813
DIFF: https://github.com/llvm/llvm-project/commit/20c68d9441cd74d7d628014cf9a846c275a36813.diff
LOG: [mlir] silence -Wunused-variable in release mode in Linalg transforms
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp b/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
index 9df4b34a4b9f..3baf9b41fe7d 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
@@ -554,6 +554,7 @@ static Value computeLoopIndependentUpperBound(OpBuilder &b, scf::ForOp outer,
backwardsSliceOnlyHasOpsOfType<scf::ForOp, AffineMinOp, AffineApplyOp>(
outer, v);
assert(ok && "expected to only be defined by scf::ForOp and AffineMinOp");
+ (void)ok;
// Compute a backward slice up to, but not including, `outer`.
llvm::SetVector<Operation *> backwardSlice;
More information about the Mlir-commits
mailing list