@@ -2641,7 +2641,7 @@ class BoUpSLP {
2641
2641
2642
2642
ScheduleData *getScheduleData(Value *V) {
2643
2643
ScheduleData *SD = ScheduleDataMap[V];
2644
- if (SD && SD->SchedulingRegionID == SchedulingRegionID )
2644
+ if (SD && isInSchedulingRegion(SD) )
2645
2645
return SD;
2646
2646
return nullptr;
2647
2647
}
@@ -2652,7 +2652,7 @@ class BoUpSLP {
2652
2652
auto I = ExtraScheduleDataMap.find(V);
2653
2653
if (I != ExtraScheduleDataMap.end()) {
2654
2654
ScheduleData *SD = I->second[Key];
2655
- if (SD && SD->SchedulingRegionID == SchedulingRegionID )
2655
+ if (SD && isInSchedulingRegion(SD) )
2656
2656
return SD;
2657
2657
}
2658
2658
return nullptr;
@@ -2774,7 +2774,7 @@ class BoUpSLP {
2774
2774
auto I = ExtraScheduleDataMap.find(V);
2775
2775
if (I != ExtraScheduleDataMap.end())
2776
2776
for (auto &P : I->second)
2777
- if (P.second->SchedulingRegionID == SchedulingRegionID )
2777
+ if (isInSchedulingRegion( P.second) )
2778
2778
Action(P.second);
2779
2779
}
2780
2780
@@ -2876,8 +2876,8 @@ class BoUpSLP {
2876
2876
2877
2877
/// The ID of the scheduling region. For a new vectorization iteration this
2878
2878
/// 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).
2881
2881
int SchedulingRegionID = 1;
2882
2882
};
2883
2883
0 commit comments