diff graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java @ 2793:d3fc4fe063bf

Rename BlockBegin to Merge, remove some Block related member from it. Made CFGPrinter work with the Block class from schedule
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Fri, 27 May 2011 11:08:55 +0200
parents 9253df721472
children b003ea36fa12
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java	Thu May 26 11:55:16 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java	Fri May 27 11:08:55 2011 +0200
@@ -134,7 +134,7 @@
             stream.printf("    <p name='idx'>%d</p>%n", node.id());
 
             Map<Object, Object> props = node.getDebugProperties();
-            if (!props.containsKey("name")) {
+            if (!props.containsKey("name") || props.get("name").toString().trim().length() == 0) {
                 String name;
                 if (shortNames) {
                     name = node.shortName();