Skip to content

Commit

Permalink
Fixes bug found in Real Register Assignment (#4572)
Browse files Browse the repository at this point in the history
Fixes bug found in Real Register Assignment
  • Loading branch information
fjeremic authored Nov 18, 2019
2 parents 3a98b5d + a12a2d0 commit 856c126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/z/codegen/OMRMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ OMR::Z::Machine::assignBestRegisterSingle(TR::Register *targetRegister,
// find a new register to shuffle to
TR::RealRegister * newAssignedRegister = self()->findBestRegisterForShuffle(currInst, targetRegister, availRegMask);
TR::Instruction *cursor = self()->registerCopy(self()->cg(), kindOfRegister, toRealRegister(assignedRegister), newAssignedRegister, appendInst);
targetRegister->setAssignedRegister(newAssignedRegister);
newAssignedRegister->setAssignedRegister(targetRegister);
newAssignedRegister->setState(TR::RealRegister::Assigned);
assignedRegister->setAssignedRegister(NULL);
Expand Down

0 comments on commit 856c126

Please sign in to comment.