# HG changeset patch # User Josef Eisl # Date 1402399781 -7200 # Node ID d2fc1c1536550729d677f6cfce5f0e4c2c06191a # Parent a54a64af1e82c62353db1cb15992f7e802bd948a LSRA spill optimization: start at the begin of the spill interval. diff -r a54a64af1e82 -r d2fc1c153655 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Thu Jun 05 16:38:24 2014 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Tue Jun 10 13:29:41 2014 +0200 @@ -1968,7 +1968,8 @@ Interval interval; public UseBlockIterator(Interval interval) { - nextOpId = interval.nextUsage(RegisterPriority.None, 0); + // the first use position is the begin of the interval + nextOpId = interval.from(); this.interval = interval; }