summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpolly/include/polly/ScopDetection.h5
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp5
-rw-r--r--polly/lib/CodeGeneration.cpp3
3 files changed, 0 insertions, 13 deletions
diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h
index 16a1dc77872..1b10cdc997d 100755
--- a/polly/include/polly/ScopDetection.h
+++ b/polly/include/polly/ScopDetection.h
@@ -244,11 +244,6 @@ public:
const_iterator end() const { return ValidRegions.end(); }
//@}
- /// @brief Remove a region and its children from valid region set.
- ///
- /// @param R The region to remove.
- void forgetScop(const Region &R);
-
/// @brief Mark the function as invalid so we will not extract any scop from
/// the function.
///
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 42a06216a1b..3edb896f8e4 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -624,11 +624,6 @@ void polly::ScopDetection::verifyAnalysis() const {
verifyRegion(**I);
}
-void ScopDetection::forgetScop(const Region &R) {
- assert(isMaxRegionInScop(R) && "R is not a Scop!");
- ValidRegions.erase(&R);
-}
-
void ScopDetection::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<DominatorTree>();
AU.addRequired<PostDominatorTree>();
diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp
index 85ccc5b8cec..7ca27263423 100644
--- a/polly/lib/CodeGeneration.cpp
+++ b/polly/lib/CodeGeneration.cpp
@@ -1470,9 +1470,6 @@ class CodeGeneration : public ScopPass {
mergeControlFlow(splitBlock, &builder);
- // Forget the Scop.
- SD->forgetScop(*region);
-
return false;
}
OpenPOWER on IntegriCloud