Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[RyuJIT/armel] Fix PutArgReg BuildRefPositions #13332

Merged
merged 1 commit into from
Aug 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions src/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3990,22 +3990,12 @@ void LinearScan::buildRefPositionsForNode(GenTree* tree,

regMaskTP candidates = getUseCandidates(useNode);
#ifdef _TARGET_ARM_
// If oper is GT_PUTARG_SPLIT, set bits in useCandidates must be in sequential order.
if (useNode->OperIsPutArgSplit())
if (useNode->OperIsPutArgSplit() || (compiler->opts.compUseSoftFP && useNode->OperIsPutArgReg()))
{
// get i-th candidate
// get i-th candidate, set bits in useCandidates must be in sequential order.
candidates = genFindLowestReg(candidates & ~currCandidates);
currCandidates |= candidates;
}
#ifdef ARM_SOFTFP
// If oper is GT_PUTARG_REG, set bits in useCandidates must be in sequential order.
if (useNode->OperIsMultiRegOp())
{
regMaskTP candidate = genFindLowestReg(candidates);
useNode->gtLsraInfo.setSrcCandidates(this, candidates & ~candidate);
candidates = candidate;
}
#endif // ARM_SOFTFP
#endif // _TARGET_ARM_

assert((candidates & allRegs(i->registerType)) != 0);
Expand Down