Skip to content

Commit 1cb3708

Browse files
authored
Merge pull request #22636 from rmnattas/56-regfix
(0.56) Set register dep to exclude GPR0 for temp2Reg in inlineCompareAndSet
2 parents 162d4f3 + 7869d59 commit 1cb3708

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/compiler/p/codegen/J9TreeEvaluator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8530,6 +8530,7 @@ static TR::Register *VMinlineCompareAndSetOrExchangeReference(TR::Node *node, TR
85308530

85318531
TR::addDependency(conditions, temp1Reg, TR::RealRegister::gr11, TR_GPR, cg);
85328532
TR::addDependency(conditions, temp2Reg, TR::RealRegister::NoReg, TR_GPR, cg);
8533+
conditions->getPostConditions()->getRegisterDependency(conditions->getAddCursorForPost() - 1)->setExcludeGPR0();
85338534
TR::addDependency(conditions, offsetReg, TR::RealRegister::NoReg, TR_GPR, cg);
85348535
TR::addDependency(conditions, temp4Reg, TR::RealRegister::NoReg, TR_GPR, cg);
85358536

0 commit comments

Comments
 (0)