changeset 16365:d2fc1c153655

LSRA spill optimization: start at the begin of the spill interval.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 10 Jun 2014 13:29:41 +0200
parents a54a64af1e82
children 0abb7a42ef75
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }