Skip to content

Commit

Permalink
Set live local index bit vector only when register candidate is created
Browse files Browse the repository at this point in the history
Fixes: eclipse-openj9/openj9#19329

Signed-off-by: Annabelle Huo <[email protected]>
  • Loading branch information
a7ehuo committed May 1, 2024
1 parent 33a1542 commit bdb57f7
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 bdb57f7

Please sign in to comment.