From a37e8265b53b35c0b7f3ce9f4df9b2efcde322be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=A4ssig?= Date: Mon, 26 May 2025 07:51:23 +0000 Subject: [PATCH] 8357649: IGV: add block index to the supplemental node properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Roberto CastaƱeda Lozano Reviewed-by: rcastanedalo, chagedorn --- src/hotspot/share/opto/idealGraphPrinter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hotspot/share/opto/idealGraphPrinter.cpp b/src/hotspot/share/opto/idealGraphPrinter.cpp index fe379c0c3c8..3721394c112 100644 --- a/src/hotspot/share/opto/idealGraphPrinter.cpp +++ b/src/hotspot/share/opto/idealGraphPrinter.cpp @@ -474,6 +474,10 @@ void IdealGraphPrinter::visit_node(Node* n, bool edges) { // Enforce dots as decimal separators, as required by IGV. StringUtils::replace_no_expand(buffer, ",", "."); print_prop("frequency", buffer); + // Print block index for nodes that are placed in blocks and scheduled locally. + if (block->contains(node)) { + print_prop("block_index", block->find_node(node)); + } } }