Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ComputeLinearScanOrder.java @ 2832:775c31be565c
Clean up. Removed special exception successors in LIRBlock. Throw no longer a BlockEnd.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 31 May 2011 11:50:19 +0200 |
parents | df4c5254c5cc |
children | 1cd59ca9ac86 |
comparison
equal
deleted
inserted
replaced
2831:f072013daba9 | 2832:775c31be565c |
---|---|
193 // recursive call for all successors | 193 // recursive call for all successors |
194 int i; | 194 int i; |
195 for (i = cur.numberOfSux() - 1; i >= 0; i--) { | 195 for (i = cur.numberOfSux() - 1; i >= 0; i--) { |
196 countEdges(cur.suxAt(i), cur); | 196 countEdges(cur.suxAt(i), cur); |
197 } | 197 } |
198 for (LIRBlock ex : cur.getExceptionHandlerSuccessors()) { | |
199 countEdges(ex, cur); | |
200 } | |
201 | 198 |
202 clearActive(cur); | 199 clearActive(cur); |
203 | 200 |
204 // Each loop has a unique number. | 201 // Each loop has a unique number. |
205 // When multiple loops are nested, assignLoopDepth assumes that the | 202 // When multiple loops are nested, assignLoopDepth assumes that the |
326 | 323 |
327 // append all unvisited successors to work list | 324 // append all unvisited successors to work list |
328 for (i = cur.numberOfSux() - 1; i >= 0; i--) { | 325 for (i = cur.numberOfSux() - 1; i >= 0; i--) { |
329 workList.add(cur.suxAt(i)); | 326 workList.add(cur.suxAt(i)); |
330 } | 327 } |
331 for (LIRBlock ex : cur.getExceptionHandlerSuccessors()) { | |
332 workList.add(ex); | |
333 } | |
334 } | 328 } |
335 } while (!workList.isEmpty()); | 329 } while (!workList.isEmpty()); |
336 } | 330 } |
337 | 331 |
338 int computeWeight(LIRBlock cur) { | 332 int computeWeight(LIRBlock cur) { |
486 LIRBlock sux = cur.suxAt(i); | 480 LIRBlock sux = cur.suxAt(i); |
487 if (readyForProcessing(sux)) { | 481 if (readyForProcessing(sux)) { |
488 sortIntoWorkList(sux); | 482 sortIntoWorkList(sux); |
489 } | 483 } |
490 } | 484 } |
491 for (LIRBlock ex : cur.getExceptionHandlerSuccessors()) { | |
492 if (readyForProcessing(ex)) { | |
493 sortIntoWorkList(ex); | |
494 } | |
495 } | |
496 } while (workList.size() > 0); | 485 } while (workList.size() > 0); |
497 } | 486 } |
498 | 487 |
499 public void printBlocks() { | 488 public void printBlocks() { |
500 if (C1XOptions.TraceLinearScanLevel >= 2) { | 489 if (C1XOptions.TraceLinearScanLevel >= 2) { |