Tool to visualize C2 Ideal IR
Volker Simonis
volker.simonis at gmail.com
Fri Feb 26 07:36:41 UTC 2016
Hi Marcelino,
IdealGraphVisualizer is now part of the hotspot repository. See:
hotspot/src/share/tools/IdealGraphVisualizer
You should be able to easily build it yourself. If you encounter any
problems, post them on hotspot-dev (CC'ed).
Regards,
Volker
On Thu, Feb 25, 2016 at 6:42 PM, Marcelino Rodriguez cancio
<marcelino.rodriguez-cancio at irisa.fr> 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