[Mlir-commits] [mlir] 3b20970 - Fix unused-variable error when assertions are disabled
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 30 04:57:07 PDT 2020
Author: scentini
Date: 2020-03-30T13:55:43+02:00
New Revision: 3b20970de8e613961ee6745f03c04be0ec1d6cb7
URL: https://github.com/llvm/llvm-project/commit/3b20970de8e613961ee6745f03c04be0ec1d6cb7
DIFF: https://github.com/llvm/llvm-project/commit/3b20970de8e613961ee6745f03c04be0ec1d6cb7.diff
LOG: Fix unused-variable error when assertions are disabled
Added:
Modified:
mlir/lib/Transforms/Utils/LoopUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index d05a02dee0c0..9b02bcd19377 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -2142,6 +2142,7 @@ static AffineIfOp createSeparationCondition(MutableArrayRef<AffineForOp> loops,
// larger (and resp. smaller) than any other lower (or upper bound).
SmallVector<int64_t, 8> fullTileLb, fullTileUb;
for (auto loop : loops) {
+ (void) loop;
// TODO: Non-unit stride is not an issue to generalize to.
assert(loop.getStep() == 1 && "point loop step expected to be one");
// Mark everything symbols for the purpose of finding a constant
diff pair.
More information about the Mlir-commits
mailing list