[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)
               ^
This commit is contained in:
Benjamin Kramer 2021-03-19 20:56:59 +01:00
parent 19d2c65ddd
commit 6327a7cfd7

View File

@ -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.