comparison graal/GraalCompiler/src/com/sun/c1x/ir/Merge.java @ 2800:e3a0630a1dab

added code for computing dominators.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Fri, 27 May 2011 14:58:55 +0200
parents 0fd105ff30f1
children 2af109bec0c0
comparison
equal deleted inserted replaced
2798:58e65eb6bb5d 2800:e3a0630a1dab
93 builder.append("merge #"); 93 builder.append("merge #");
94 builder.append(id()); 94 builder.append(id());
95 builder.append(" ["); 95 builder.append(" [");
96 96
97 builder.append("]"); 97 builder.append("]");
98 //if (end() != null) { 98
99 builder.append(" -> "); 99 builder.append(" -> ");
100 boolean hasSucc = false; 100 boolean hasSucc = false;
101 for (Node s : this.successors()) { 101 for (Node s : this.successors()) {
102 if (hasSucc) { 102 if (hasSucc) {
103 builder.append(", "); 103 builder.append(", ");
104 } 104 }
105 builder.append("#"); 105 builder.append("#");
106 if (s != null) {
106 builder.append(s.id()); 107 builder.append(s.id());
107 hasSucc = true; 108 } else {
108 } 109 builder.append("null");
109 //} 110 }
111 hasSucc = true;
112 }
113
110 return builder.toString(); 114 return builder.toString();
111 } 115 }
112 116
113 public void printWithoutPhis(LogStream out) { 117 public void printWithoutPhis(LogStream out) {
114 // print block id 118 // print block id