diff graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java @ 2684:ed36daed4c43

Add new option PrintIdealGraphToFile and another printer/observer pair to generate a graph representation that can be visualized and inspected with the ideal graph visualizer
author Peter Hofer <peter.hofer@jku.at>
date Mon, 16 May 2011 17:31:53 +0200
parents 6ab73784566a
children b179be22a3db
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java	Mon May 16 17:26:47 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/C1XCompiler.java	Mon May 16 17:31:53 2011 +0200
@@ -131,6 +131,9 @@
         if (C1XOptions.PrintDOTGraphToPdf) {
             addCompilationObserver(new GraphvizPrinterObserver(true));
         }
+        if (C1XOptions.PrintIdealGraphToFile) {
+            addCompilationObserver(new IdealGraphPrinterObserver());
+        }
     }
 
     public GlobalStub lookupGlobalStub(GlobalStub.Id id) {