# HG changeset patch # User Josef Eisl # Date 1400690448 -7200 # Node ID 88a6017687c952e00c34f5082f326ed923878966 # Parent 67e0015b21d681b9f6e2d09bf76e082377ad9134 LSRA: fix getMaterializedValue() (respect MustHaveRegister priorities). diff -r 67e0015b21d6 -r 88a6017687c9 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 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; } }