diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -2302,11 +2302,11 @@ // Print out some context information about the predecessors of this block. if (!block->getParent()) { - os << "\t// block is not in a region!"; + os << " // block is not in a region!"; } else if (block->hasNoPredecessors()) { - os << "\t// no predecessors"; + os << " // no predecessors"; } else if (auto *pred = block->getSinglePredecessor()) { - os << "\t// pred: "; + os << " // pred: "; printBlockName(pred); } else { // We want to print the predecessors in increasing numeric order, not in @@ -2316,7 +2316,7 @@ predIDs.push_back({state->getSSANameState().getBlockID(pred), pred}); llvm::array_pod_sort(predIDs.begin(), predIDs.end()); - os << "\t// " << predIDs.size() << " preds: "; + os << " // " << predIDs.size() << " preds: "; interleaveComma(predIDs, [&](std::pair pred) { printBlockName(pred.second);