Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/SSAMoveResolver.java @ 21269:85d0088596e8
SpillMoveFactory#emitStackMove: use AllocatableValue and Value (again).
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 07 May 2015 15:04:02 +0200 |
parents | 4f7c7754667a |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
21268:7d998dd2d1b0 | 21269:85d0088596e8 |
---|---|
112 } | 112 } |
113 | 113 |
114 @Override | 114 @Override |
115 protected LIRInstruction createMove(AllocatableValue fromOpr, AllocatableValue toOpr, AllocatableValue fromLocation, AllocatableValue toLocation) { | 115 protected LIRInstruction createMove(AllocatableValue fromOpr, AllocatableValue toOpr, AllocatableValue fromLocation, AllocatableValue toLocation) { |
116 if (isStackSlotValue(toLocation) && isStackSlotValue(fromLocation)) { | 116 if (isStackSlotValue(toLocation) && isStackSlotValue(fromLocation)) { |
117 return getAllocator().getSpillMoveFactory().createStackMove(asStackSlotValue(toOpr), asStackSlotValue(fromOpr)); | 117 return getAllocator().getSpillMoveFactory().createStackMove(toOpr, fromOpr); |
118 } | 118 } |
119 return super.createMove(fromOpr, toOpr, fromLocation, toLocation); | 119 return super.createMove(fromOpr, toOpr, fromLocation, toLocation); |
120 } | 120 } |
121 } | 121 } |