Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2779:93ec3f067420
Changed CriticalEdgeFinder to use LIRBlock.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 25 May 2011 11:04:59 +0200 |
parents | 2ac7b30b7290 |
children | 915456e4959e |
comparison
equal
deleted
inserted
replaced
2778:2ac7b30b7290 | 2779:93ec3f067420 |
---|---|
576 visitSwitchRanges(createLookupRanges(x), tag, getLIRBlock(x.defaultSuccessor())); | 576 visitSwitchRanges(createLookupRanges(x), tag, getLIRBlock(x.defaultSuccessor())); |
577 } | 577 } |
578 } | 578 } |
579 | 579 |
580 protected LIRBlock getLIRBlock(Instruction b) { | 580 protected LIRBlock getLIRBlock(Instruction b) { |
581 assert b instanceof BlockBegin : "only BlockBegin, for now..."; | |
582 return ir.valueToBlock.get(b); | 581 return ir.valueToBlock.get(b); |
583 } | 582 } |
584 | 583 |
585 @Override | 584 @Override |
586 public void visitNullCheck(NullCheck x) { | 585 public void visitNullCheck(NullCheck x) { |