final class SimpleSpillCost extends SpillCostEstimator
| Constructor and Description |
|---|
SimpleSpillCost(IR ir) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
calculate(IR ir)
Calculates the estimated cost for each register.
|
(package private) static boolean |
hasBadSizeMemoryOperand(Instruction s)
Does instruction s have a memory operand of an inconvenient size?
|
getCost, updateSimpleSpillCost(IR ir)
void calculate(IR ir)
SpillCostEstimatorcalculate in class SpillCostEstimatorir - the IR objectstatic boolean hasBadSizeMemoryOperand(Instruction s)
NOTE: This is pretty intel-specific. TODO Refactor to arch/ tree.
s - the instruction to examinetrue if and only if the instruction has such a memory
operand