mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-17 05:24:49 +00:00
CodeGeneration: No need to forget SCoP.
As we do not delete the SCoP, there is no need to remove it from the SCoP detection. llvm-svn: 131356
This commit is contained in:
parent
678dbbf3b0
commit
e91c53d2a9
@ -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.
|
||||
///
|
||||
|
@ -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>();
|
||||
|
@ -1470,9 +1470,6 @@ class CodeGeneration : public ScopPass {
|
||||
|
||||
mergeControlFlow(splitBlock, &builder);
|
||||
|
||||
// Forget the Scop.
|
||||
SD->forgetScop(*region);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user