Skip to content

Commit a37e826

Browse files
mhaessigrobcasloz
andcommitted
8357649: IGV: add block index to the supplemental node properties
Co-authored-by: Roberto Castañeda Lozano <[email protected]> Reviewed-by: rcastanedalo, chagedorn
1 parent 3dbd2d3 commit a37e826

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hotspot/share/opto/idealGraphPrinter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ void IdealGraphPrinter::visit_node(Node* n, bool edges) {
474474
// Enforce dots as decimal separators, as required by IGV.
475475
StringUtils::replace_no_expand(buffer, ",", ".");
476476
print_prop("frequency", buffer);
477+
// Print block index for nodes that are placed in blocks and scheduled locally.
478+
if (block->contains(node)) {
479+
print_prop("block_index", block->find_node(node));
480+
}
477481
}
478482
}
479483

0 commit comments

Comments
 (0)