diff options
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 4eb1ce22008..303193bcb96 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -397,13 +397,10 @@ void LoopTiling::runOnFunction() { SmallVector<unsigned, 6> tileSizes; getTileSizes(band, &tileSizes); if (llvm::DebugFlag) { - std::stringstream msg; - msg << "using tile sizes ["; + auto diag = band[0].emitRemark("using tile sizes ["); for (auto tSize : tileSizes) - msg << tSize << " "; - msg << "]\n"; - auto rootForOp = band[0]; - rootForOp.emitRemark(msg.str()); + diag << tSize << " "; + diag << "]\n"; } if (failed(tileCodeGen(band, tileSizes))) return signalPassFailure(); |

