< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase.java
Print this page
rev 52509 : [mq]: graal2
@@ -148,14 +148,14 @@
betterSpillPos.increment(debug);
if (debug.isLogEnabled()) {
debug.log("Better spill position found (Block %s)", spillBlock);
}
- if (defBlock.probability() <= spillBlock.probability()) {
- debug.log(DebugContext.VERBOSE_LEVEL, "Definition has lower probability %s (%f) is lower than spill block %s (%f)", defBlock, defBlock.probability(), spillBlock,
- spillBlock.probability());
- // better spill block has the same probability -> do nothing
+ if (defBlock.getRelativeFrequency() <= spillBlock.getRelativeFrequency()) {
+ debug.log(DebugContext.VERBOSE_LEVEL, "Definition has lower frequency %s (%f) is lower than spill block %s (%f)", defBlock, defBlock.getRelativeFrequency(), spillBlock,
+ spillBlock.getRelativeFrequency());
+ // better spill block has the same frequency -> do nothing
interval.setSpillState(SpillState.StoreAtDefinition);
return;
}
LIRInsertionBuffer insertionBuffer = insertionBuffers[spillBlock.getId()];
< prev index next >