Skip to content

Commit 8612b11

Browse files
committed
[SLP] Use isInSchedulingRegion consistently [NFC]
1 parent d657c68 commit 8612b11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -2641,7 +2641,7 @@ class BoUpSLP {
26412641

26422642
ScheduleData *getScheduleData(Value *V) {
26432643
ScheduleData *SD = ScheduleDataMap[V];
2644-
if (SD && SD->SchedulingRegionID == SchedulingRegionID)
2644+
if (SD && isInSchedulingRegion(SD))
26452645
return SD;
26462646
return nullptr;
26472647
}
@@ -2652,7 +2652,7 @@ class BoUpSLP {
26522652
auto I = ExtraScheduleDataMap.find(V);
26532653
if (I != ExtraScheduleDataMap.end()) {
26542654
ScheduleData *SD = I->second[Key];
2655-
if (SD && SD->SchedulingRegionID == SchedulingRegionID)
2655+
if (SD && isInSchedulingRegion(SD))
26562656
return SD;
26572657
}
26582658
return nullptr;
@@ -2774,7 +2774,7 @@ class BoUpSLP {
27742774
auto I = ExtraScheduleDataMap.find(V);
27752775
if (I != ExtraScheduleDataMap.end())
27762776
for (auto &P : I->second)
2777-
if (P.second->SchedulingRegionID == SchedulingRegionID)
2777+
if (isInSchedulingRegion(P.second))
27782778
Action(P.second);
27792779
}
27802780

@@ -2876,8 +2876,8 @@ class BoUpSLP {
28762876

28772877
/// The ID of the scheduling region. For a new vectorization iteration this
28782878
/// is incremented which "removes" all ScheduleData from the region.
2879-
// Make sure that the initial SchedulingRegionID is greater than the
2880-
// initial SchedulingRegionID in ScheduleData (which is 0).
2879+
/// Make sure that the initial SchedulingRegionID is greater than the
2880+
/// initial SchedulingRegionID in ScheduleData (which is 0).
28812881
int SchedulingRegionID = 1;
28822882
};
28832883

0 commit comments

Comments
 (0)