Skip to content

Commit

Permalink
Fix and unifying genStoreLclFld/LclVar on x64
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Bohe authored and BrianBohe committed Dec 8, 2022
1 parent 9573df0 commit d399b8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/jit/codegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4893,12 +4893,12 @@ void CodeGen::genCodeForStoreLclFld(GenTreeLclFld* tree)
// Updating variable liveness after instruction was emitted
if (targetReg != REG_NA)
{
genUpdateLife(tree);
varDsc->SetRegNum(REG_STK);
genProduceReg(tree);
}
else
{
genProduceReg(tree);
genUpdateLife(tree);
varDsc->SetRegNum(REG_STK);
}
}

Expand Down Expand Up @@ -5018,13 +5018,13 @@ void CodeGen::genCodeForStoreLclVar(GenTreeLclVar* lclNode)
emitTypeSize(targetType));
}
}
// Updating variable liveness after instruction was emitted
if (targetReg != REG_NA)
{
genProduceReg(lclNode);
}
else
{
// Updating variable liveness after instruction was emitted
genUpdateLife(lclNode);
varDsc->SetRegNum(REG_STK);
}
Expand Down

0 comments on commit d399b8c

Please sign in to comment.