summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopTiling.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-05-06 21:59:40 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-05-10 19:23:07 -0700
commitae9f4f21570865eba572202d29240c112b37a4d6 (patch)
treeba434e293b7acfef5753ea7ef0c1f7768cb36b00 /mlir/lib/Transforms/LoopTiling.cpp
parentc34386e3e590438c3ae914659106d611d8035e70 (diff)
downloadbcm5719-llvm-ae9f4f21570865eba572202d29240c112b37a4d6.tar.gz
bcm5719-llvm-ae9f4f21570865eba572202d29240c112b37a4d6.zip
Simplify the emission of various diagnostics created in Analysis/ and Transforms/ by using the new diagnostic infrastructure.
-- PiperOrigin-RevId: 246955332
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
-rw-r--r--mlir/lib/Transforms/LoopTiling.cpp9
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();
OpenPOWER on IntegriCloud