[PATCH] D77510: [mlir] Only number the parent operation in Block::printAsOperand

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 16:34:11 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc9da04d6604d: [mlir] Only number the parent operation in Block::printAsOperand (authored by rriddle).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77510/new/

https://reviews.llvm.org/D77510

Files:
  mlir/lib/IR/AsmPrinter.cpp


Index: mlir/lib/IR/AsmPrinter.cpp
===================================================================
--- mlir/lib/IR/AsmPrinter.cpp
+++ mlir/lib/IR/AsmPrinter.cpp
@@ -2398,10 +2398,6 @@
     os << "<<UNLINKED BLOCK>>\n";
     return;
   }
-  // Get the top-level op.
-  while (auto *nextOp = parentOp->getParentOp())
-    parentOp = nextOp;
-
   AsmState state(parentOp);
   printAsOperand(os, state);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77510.255208.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200405/b0213302/attachment.bin>


More information about the llvm-commits mailing list