# HG changeset patch # User Thomas Wuerthinger # Date 1368152489 25200 # Node ID 8851fabf22656e65b898aaab5319177e0bf80a72 # Parent 29abc1e2228006c17a5681f75b55c65baed1e6b8 LinearScan: Can no longer check for object equality after removal of RegisterValue cache. diff -r 29abc1e22280 -r 8851fabf2265 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 May 09 23:32:31 2013 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Thu May 09 19:21:29 2013 -0700 @@ -1780,7 +1780,7 @@ // remove useless moves if (op instanceof MoveOp) { MoveOp move = (MoveOp) op; - if (move.getInput() == move.getResult()) { + if (move.getInput().equals(move.getResult())) { instructions.set(j, null); hasDead = true; } diff -r 29abc1e22280 -r 8851fabf2265 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java Thu May 09 23:32:31 2013 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java Thu May 09 19:21:29 2013 -0700 @@ -134,7 +134,7 @@ } for (i = 0; i < mappingTo.size(); i++) { Interval interval = mappingTo.get(i); - assert !usedRegs.contains(interval.location()) || interval.location() == mappingFrom.get(i).location() : "stack slots used in mappingFrom must be disjoint to mappingTo"; + assert !usedRegs.contains(interval.location()) || interval.location().equals(mappingFrom.get(i).location()) : "stack slots used in mappingFrom must be disjoint to mappingTo"; } return true;