diff options
| author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-19 12:34:57 +0000 |
|---|---|---|
| committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-19 12:34:57 +0000 |
| commit | ffd222f2d671d5e15b10d17a19bab21f16891a5d (patch) | |
| tree | b2cc1050ce29afaab5a0f3a55a69b8be2fdd47dc /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 60dd9e134688da14357b515258c3194253c9a3eb (diff) | |
| download | bcm5719-llvm-ffd222f2d671d5e15b10d17a19bab21f16891a5d.tar.gz bcm5719-llvm-ffd222f2d671d5e15b10d17a19bab21f16891a5d.zip | |
Propagate the DetectionContext to the SCoP [NFC]
The SCoP now holds a reference to the ScopDetection::DetectionContext
which allows to simplify the type of various methods and remove code.
llvm-svn: 270053
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index cf71b8905ed..bfc9a99ff86 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1493,13 +1493,6 @@ bool ScopDetection::runOnFunction(llvm::Function &F) { return false; } -bool ScopDetection::isNonAffineSubRegion(const Region *SubR, - const Region *ScopR) const { - const DetectionContext *DC = getDetectionContext(ScopR); - assert(DC && "ScopR is no valid region!"); - return DC->NonAffineSubRegionSet.count(SubR); -} - const ScopDetection::DetectionContext * ScopDetection::getDetectionContext(const Region *R) const { auto DCMIt = DetectionContextMap.find(getBBPairForRegion(R)); @@ -1508,27 +1501,6 @@ ScopDetection::getDetectionContext(const Region *R) const { return &DCMIt->second; } -const ScopDetection::BoxedLoopsSetTy * -ScopDetection::getBoxedLoops(const Region *R) const { - const DetectionContext *DC = getDetectionContext(R); - assert(DC && "ScopR is no valid region!"); - return &DC->BoxedLoopsSet; -} - -const MapInsnToMemAcc * -ScopDetection::getInsnToMemAccMap(const Region *R) const { - const DetectionContext *DC = getDetectionContext(R); - assert(DC && "ScopR is no valid region!"); - return &DC->InsnToMemAcc; -} - -const InvariantLoadsSetTy * -ScopDetection::getRequiredInvariantLoads(const Region *R) const { - const DetectionContext *DC = getDetectionContext(R); - assert(DC && "ScopR is no valid region!"); - return &DC->RequiredILS; -} - const RejectLog *ScopDetection::lookupRejectionLog(const Region *R) const { const DetectionContext *DC = getDetectionContext(R); return DC ? &DC->Log : nullptr; |

