forked from OSchip/llvm-project
[mlir] Only number the parent operation in Block::printAsOperand
Summary: Blocks are numbered locally within a region, so numbering above the parent region is unnecessary. Differential Revision: https://reviews.llvm.org/D77510
This commit is contained in:
parent
944db8a433
commit
c9da04d660
|
@ -2398,10 +2398,6 @@ void Block::printAsOperand(raw_ostream &os, bool printType) {
|
|||
os << "<<UNLINKED BLOCK>>\n";
|
||||
return;
|
||||
}
|
||||
// Get the top-level op.
|
||||
while (auto *nextOp = parentOp->getParentOp())
|
||||
parentOp = nextOp;
|
||||
|
||||
AsmState state(parentOp);
|
||||
printAsOperand(os, state);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue