Mercurial > hg > graal-compiler
changeset 23187:e660e8431be0
TraceRA: TraceGlobalMoveResolver: minor clean up.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Mon, 14 Dec 2015 17:48:10 +0100 |
parents | c37db3aa7e43 |
children | f59bbe75e773 |
files | graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/trace/TraceGlobalMoveResolver.java |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/trace/TraceGlobalMoveResolver.java Fri Dec 11 16:29:17 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/trace/TraceGlobalMoveResolver.java Mon Dec 14 17:48:10 2015 +0100 @@ -351,11 +351,8 @@ boolean processedInterval = false; for (int i = mappingFrom.size() - 1; i >= 0; i--) { - Value fromInterval = mappingFrom.get(i); - AllocatableValue toInterval = mappingTo.get(i); - - Value fromLocation = fromInterval; - AllocatableValue toLocation = toInterval; + Value fromLocation = mappingFrom.get(i); + AllocatableValue toLocation = mappingTo.get(i); if (safeToProcessMove(fromLocation, toLocation)) { // this interval can be processed because target is free insertMove(fromLocation, toLocation); @@ -364,7 +361,7 @@ mappingTo.remove(i); processedInterval = true; - } else if (fromInterval != null && isRegister(fromLocation)) { + } else if (fromLocation != null && isRegister(fromLocation)) { // this interval cannot be processed now because target is not free // it starts in a register, so it is a possible candidate for spilling spillCandidate = i;