mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user