Tool to visualize C2 Ideal IR

Chris Newland cnewland at chrisnewland.com
Thu Feb 25 21:39:29 UTC 2016


Hi Marcelino,

This is something I've considered adding to JITWatch [1] and would be a
really cool feature. Shame that -XX:+PrintIdeal is 'notproduct' and only
available in the debug VM.

JITWatch has a JavaFX GUI so the visualisation code would be quite easy.

I'd be happy to receive a pull request for this ;) or let me know if you'd
like to collaborate on it?

Cheers,

Chris

[1] https://github.com/AdoptOpenJDK/jitwatch

On Thu, February 25, 2016 17:42, Marcelino Rodriguez cancio wrote:
> Hello all,
>
>
> Is there any tool to visualize the trace produced by Hotspot's C2
> compiler when PrintIdeal is set to true? For example:
>
> ................
> 780 ConvI2L === _ 794 [[ 774 ]] #long:0..maxint-63:www
> !orig=[684],[626],[586],[479],[439],[259],208 !jvms:
> MyBenchmark::testMethod @ bci:31
> 774 L ShiftL === _ 780 209 [[ 773 ]]
> !orig=[678],[620],[582],[475],[435],[251],210 !jvms:
> MyBenchmark::testMethod @ bci:31
> 773 A ddP = = = _ 86 86 77 4 [[ 751 ]]
> !orig=[677],[619],[581],[474],[434],[250],212 !jvms:
> MyBenchmark::testMethod @ bci:31
> 608 C onL = = = 0 [[ 770 ]] #long:32
> ...........
>
>
> I was going to do my own script to turn the graph into GraphViz, but then
> I saw the work "Visualization of Program Dependence Graphs" by Thomas
> Wurthinger, Christian Wimmer, and Hanspeter Mössenböck. (
> http://dl.acm.org/citation.cfm?id=1788391 ) and seems amazing. But I
> can't find the tool for download anywhere.
>
> I know there is a tool for C1: https://java.net/projects/c1visualizer/
>
>
> Best and thanks
> Marcelino
>
>
>
>




More information about the adoption-discuss mailing list