changeset 21314:8908ac7d2c86

LinearScan: move call to sortIntervalsBeforeAllocation to RegisterAllocation phase.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 06 May 2015 17:44:32 +0200
parents bb9d3f0616a3
children 5f4847feeb69
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java	Wed May 06 17:37:35 2015 +0200
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java	Wed May 06 17:44:32 2015 +0200
@@ -1870,7 +1870,6 @@
             computeLocalLiveSets();
             computeGlobalLiveSets();
             buildIntervals();
-            sortIntervalsBeforeAllocation();
         }
 
     }
@@ -1880,6 +1879,7 @@
         @Override
         protected <B extends AbstractBlockBase<B>> void run(TargetDescription target, LIRGenerationResult lirGenRes, List<B> codeEmittingOrder, List<B> linearScanOrder,
                         SpillMoveFactory spillMoveFactory) {
+            sortIntervalsBeforeAllocation();
             printIntervals("Before register allocation");
             allocateRegisters();
             printIntervals("After register allocation");