Skip to content

Commit 5e252bc

Browse files
committed
[llvm][CodeGen] Modifications made based on review comments 5
1 parent c71564e commit 5e252bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/ModuloSchedule.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,9 @@ void ModuloScheduleExpander::generateExistingPhis(
610610
// Check if we need to rename a Phi that has been eliminated due to
611611
// scheduling.
612612
if (NumStages == 0 && IsLast) {
613-
auto It = VRMap[CurStageNum].find(LoopVal);
614-
if (It != VRMap[CurStageNum].end()) {
613+
auto &CurStageMap = VRMap[CurStageNum];
614+
auto It = CurStageMap.find(LoopVal);
615+
if (It != CurStageMap.end()) {
615616
replaceRegUsesAfterLoop(Def, It->second, BB, MRI);
616617
NoIntervalRegs.push_back(It->second);
617618
}

0 commit comments

Comments
 (0)