comparison graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java @ 2546:e1b3db8031ee

Removed liveness marking.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 21:54:31 +0200
parents 16b9a8b5ad39
children 274360f98f97
comparison
equal deleted inserted replaced
2545:bb050fe2901d 2546:e1b3db8031ee
484 */ 484 */
485 public final boolean forEachLivePhi(BlockBegin block, PhiProcedure proc) { 485 public final boolean forEachLivePhi(BlockBegin block, PhiProcedure proc) {
486 int max = this.valuesSize(); 486 int max = this.valuesSize();
487 for (int i = 0; i < max; i++) { 487 for (int i = 0; i < max; i++) {
488 Value instr = values[i]; 488 Value instr = values[i];
489 if (instr instanceof Phi && instr.isLive() && !instr.isDeadPhi()) { 489 if (instr instanceof Phi && !instr.isDeadPhi()) {
490 Phi phi = (Phi) instr; 490 Phi phi = (Phi) instr;
491 if (block == null || phi.block() == block) { 491 if (block == null || phi.block() == block) {
492 if (!proc.doPhi(phi)) { 492 if (!proc.doPhi(phi)) {
493 return false; 493 return false;
494 } 494 }
561 FrameState state = this; 561 FrameState state = this;
562 while (state != null) { 562 while (state != null) {
563 final int max = state.valuesSize(); 563 final int max = state.valuesSize();
564 for (int i = 0; i < max; i++) { 564 for (int i = 0; i < max; i++) {
565 Value value = state.values[i]; 565 Value value = state.values[i];
566 if (value != null && value.isLive()) { 566 if (value != null) {
567 proc.doValue(value); 567 proc.doValue(value);
568 } 568 }
569 } 569 }
570 state = state.callerState(); 570 state = state.callerState();
571 } 571 }