Tool to visualize C2 Ideal IR

Marcelino Rodriguez cancio marcelino.rodriguez-cancio at irisa.fr
Thu Feb 25 17:42:35 UTC 2016


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