[Mlir-commits] [mlir] [mlir] Handle backedges in --view-op-graph (PR #82002)
Artem Tyurin
llvmlistbot at llvm.org
Fri Feb 16 15:37:20 PST 2024
================
@@ -276,6 +277,8 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
/// Process a block. Emit a cluster and one node per block argument and
/// operation inside the cluster.
void processBlock(Block &block) {
+ sortTopologically(&block);
----------------
agentcooper wrote:
Good point, I didn't consider that this pass can be used in the middle of the pipeline. I've updated the code so that it does not modify the existing block.
https://github.com/llvm/llvm-project/pull/82002
More information about the Mlir-commits
mailing list