Skip to content

Commit

Permalink
Merge pull request #7328 from a7ehuo/fix-gra-setup-rc
Browse files Browse the repository at this point in the history
Set live local index bit vector only when register candidate is created
  • Loading branch information
hzongaro committed May 1, 2024
2 parents 49ff22b + bdb57f7 commit 76d1f00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/optimizer/GlobalRegisterAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2733,11 +2733,12 @@ void TR_GlobalRegisterAllocator::offerAllAutosAndRegisterParmAsCandidates(TR::Bl
if (paramCursor->getLinkageRegisterIndex() >= 0)
rc->addAllBlocks();
}

i = paramCursor->getLiveLocalIndex();
autoAndParmLiveLocalIndex.set(i);
registerCandidateByIndex[i] = rc;
}

i = paramCursor->getLiveLocalIndex();
autoAndParmLiveLocalIndex.set(i);
registerCandidateByIndex[i] = rc;
paramCursor = paramIterator.getNext();
}

Expand Down

0 comments on commit 76d1f00

Please sign in to comment.