org.jikesrvm.compilers.opt.regalloc
Class BlockCountSpillCost
java.lang.Object
org.jikesrvm.compilers.opt.regalloc.SpillCostEstimator
org.jikesrvm.compilers.opt.regalloc.BlockCountSpillCost
class BlockCountSpillCost
- extends SpillCostEstimator
An object that returns an estimate of the relative cost of spilling a
symbolic register, based on basic block frequencies.
Method Summary |
(package private) void |
calculate(IR ir)
Calculate the estimated cost for each register. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockCountSpillCost
BlockCountSpillCost(IR ir)
calculate
void calculate(IR ir)
- Description copied from class:
SpillCostEstimator
- Calculate the estimated cost for each register.
- Specified by:
calculate
in class SpillCostEstimator