changeset 15914:88a6017687c9

LSRA: fix getMaterializedValue() (respect MustHaveRegister priorities).
author Josef Eisl <josef.eisl@jku.at>
date Wed, 21 May 2014 18:40:48 +0200
parents 67e0015b21d6
children 0bfce5328510
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java	Mon May 26 18:18:19 2014 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java	Wed May 21 18:40:48 2014 +0200
@@ -2057,7 +2057,7 @@
                 int numUsePos = usePosList.size();
                 for (int useIdx = 0; useIdx < numUsePos; useIdx++) {
                     Interval.RegisterPriority priority = usePosList.registerPriority(useIdx);
-                    if (priority == Interval.RegisterPriority.ShouldHaveRegister) {
+                    if (priority.greaterEqual(Interval.RegisterPriority.ShouldHaveRegister)) {
                         return null;
                     }
                 }