[Mlir-commits] [mlir] 6327a7c - [mlir][Linalg] Make LLVM_DEBUG region bigger to avoid warnings in Release builds
Benjamin Kramer
llvmlistbot at llvm.org
Fri Mar 19 12:57:58 PDT 2021
Author: Benjamin Kramer
Date: 2021-03-19T20:56:59+01:00
New Revision: 6327a7cfd734ffe999c631854d8ca07510f9036a
URL: https://github.com/llvm/llvm-project/commit/6327a7cfd734ffe999c631854d8ca07510f9036a
DIFF: https://github.com/llvm/llvm-project/commit/6327a7cfd734ffe999c631854d8ca07510f9036a.diff
LOG: [mlir][Linalg] Make LLVM_DEBUG region bigger to avoid warnings in Release builds
Transforms.cpp:586:16: error: unused variable 'v' [-Werror,-Wunused-variable]
for (Value v : operands)
^
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
index fef6dd8f996f..965275dc2bcc 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
@@ -581,10 +581,12 @@ static AffineMap substitute(
auto map = AffineMap::get(dims.size(), symbols.size(), exprs,
exprs.front().getContext());
- LLVM_DEBUG(DBGS() << "Map to simplify: " << map << "\n");
- LLVM_DEBUG(DBGS() << "Operands:\n");
- for (Value v : operands)
- LLVM_DEBUG(DBGS() << v << "\n");
+ LLVM_DEBUG({
+ DBGS() << "Map to simplify: " << map << "\n";
+ DBGS() << "Operands:\n";
+ for (Value v : operands)
+ DBGS() << v << "\n";
+ });
// Pull in affine.apply operations and compose them fully into the
// result.
More information about the Mlir-commits
mailing list