[SLP] Use isInSchedulingRegion consistently [NFC]

This commit is contained in:
Philip Reames 2022-02-22 10:27:00 -08:00
parent d657c6893f
commit 8612b11c86
1 changed files with 5 additions and 5 deletions

View File

@ -2641,7 +2641,7 @@ private:
ScheduleData *getScheduleData(Value *V) {
ScheduleData *SD = ScheduleDataMap[V];
if (SD && SD->SchedulingRegionID == SchedulingRegionID)
if (SD && isInSchedulingRegion(SD))
return SD;
return nullptr;
}
@ -2652,7 +2652,7 @@ private:
auto I = ExtraScheduleDataMap.find(V);
if (I != ExtraScheduleDataMap.end()) {
ScheduleData *SD = I->second[Key];
if (SD && SD->SchedulingRegionID == SchedulingRegionID)
if (SD && isInSchedulingRegion(SD))
return SD;
}
return nullptr;
@ -2774,7 +2774,7 @@ private:
auto I = ExtraScheduleDataMap.find(V);
if (I != ExtraScheduleDataMap.end())
for (auto &P : I->second)
if (P.second->SchedulingRegionID == SchedulingRegionID)
if (isInSchedulingRegion(P.second))
Action(P.second);
}
@ -2876,8 +2876,8 @@ private:
/// The ID of the scheduling region. For a new vectorization iteration this
/// is incremented which "removes" all ScheduleData from the region.
// Make sure that the initial SchedulingRegionID is greater than the
// initial SchedulingRegionID in ScheduleData (which is 0).
/// Make sure that the initial SchedulingRegionID is greater than the
/// initial SchedulingRegionID in ScheduleData (which is 0).
int SchedulingRegionID = 1;
};