Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2755:80b024e75b29
small fix for dead blocks
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 20 May 2011 14:50:04 +0200 |
parents | 88123130ede6 |
children | b72e6638b9e6 |
comparison
equal
deleted
inserted
replaced
2754:e91608c2daff | 2755:80b024e75b29 |
---|---|
578 } else { | 578 } else { |
579 visitSwitchRanges(createLookupRanges(x), tag, getLIRBlock(x.defaultSuccessor())); | 579 visitSwitchRanges(createLookupRanges(x), tag, getLIRBlock(x.defaultSuccessor())); |
580 } | 580 } |
581 } | 581 } |
582 | 582 |
583 protected LIRBlock getLIRBlock(BlockBegin b) { | 583 protected LIRBlock getLIRBlock(Instruction b) { |
584 return b.lirBlock(); | 584 assert b instanceof BlockBegin : "only BlockBegin, for now..."; |
585 return ((BlockBegin) b).lirBlock(); | |
585 } | 586 } |
586 | 587 |
587 @Override | 588 @Override |
588 public void visitNullCheck(NullCheck x) { | 589 public void visitNullCheck(NullCheck x) { |
589 CiValue value = load(x.object()); | 590 CiValue value = load(x.object()); |