Make the detection context non-constant [NFC]

llvm-svn: 270410
This commit is contained in:
Johannes Doerfert 2016-05-23 09:07:08 +00:00
parent a61eda7698
commit 1dafea4114
4 changed files with 5 additions and 5 deletions

View File

@ -525,7 +525,7 @@ public:
bool isMaxRegionInScop(const Region &R, bool Verify = true) const;
/// @brief Return the detection context for @p R, nullptr if @p R was invalid.
const DetectionContext *getDetectionContext(const Region *R) const;
DetectionContext *getDetectionContext(const Region *R) const;
/// @brief Return the set of rejection causes for @p R.
const RejectLog *lookupRejectionLog(const Region *R) const;

View File

@ -1354,7 +1354,7 @@ private:
DenseMap<const SCEV *, isl_id *> ParameterIds;
/// @brief The context of the SCoP created during SCoP detection.
const ScopDetection::DetectionContext &DC;
ScopDetection::DetectionContext &DC;
/// Isl context.
///
@ -1495,7 +1495,7 @@ private:
/// @brief Scop constructor; invoked from ScopInfo::buildScop.
Scop(Region &R, ScalarEvolution &SE, LoopInfo &LI,
const ScopDetection::DetectionContext &DC);
ScopDetection::DetectionContext &DC);
/// @brief Get or create the access function set in a BasicBlock
AccFuncSetType &getOrCreateAccessFunctions(const BasicBlock *BB) {

View File

@ -1500,7 +1500,7 @@ bool ScopDetection::runOnFunction(llvm::Function &F) {
return false;
}
const ScopDetection::DetectionContext *
ScopDetection::DetectionContext *
ScopDetection::getDetectionContext(const Region *R) const {
auto DCMIt = DetectionContextMap.find(getBBPairForRegion(R));
if (DCMIt == DetectionContextMap.end())

View File

@ -3052,7 +3052,7 @@ static Loop *getLoopSurroundingRegion(Region &R, LoopInfo &LI) {
}
Scop::Scop(Region &R, ScalarEvolution &ScalarEvolution, LoopInfo &LI,
const ScopDetection::DetectionContext &DC)
ScopDetection::DetectionContext &DC)
: SE(&ScalarEvolution), R(R), IsOptimized(false),
HasSingleExitEdge(R.getExitingBlock()), HasErrorBlock(false),
MaxLoopDepth(0), DC(DC), IslCtx(isl_ctx_alloc(), isl_ctx_free),