[llvm] 8612b11 - [SLP] Use isInSchedulingRegion consistently [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 10:27:22 PST 2022
Author: Philip Reames
Date: 2022-02-22T10:27:16-08:00
New Revision: 8612b11c866f23d2bb756782b8fa9e1dbe067f7c
URL: https://github.com/llvm/llvm-project/commit/8612b11c866f23d2bb756782b8fa9e1dbe067f7c
DIFF: https://github.com/llvm/llvm-project/commit/8612b11c866f23d2bb756782b8fa9e1dbe067f7c.diff
LOG: [SLP] Use isInSchedulingRegion consistently [NFC]
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 99da014e0cc3..bdc6a33eb227 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2641,7 +2641,7 @@ class BoUpSLP {
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 @@ class BoUpSLP {
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 @@ class BoUpSLP {
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 @@ class BoUpSLP {
/// 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;
};
More information about the llvm-commits
mailing list