[polly] r270410 - Make the detection context non-constant [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 02:07:12 PDT 2016
Author: jdoerfert
Date: Mon May 23 04:07:08 2016
New Revision: 270410
URL: http://llvm.org/viewvc/llvm-project?rev=270410&view=rev
Log:
Make the detection context non-constant [NFC]
Modified:
polly/trunk/include/polly/ScopDetection.h
polly/trunk/include/polly/ScopInfo.h
polly/trunk/lib/Analysis/ScopDetection.cpp
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/include/polly/ScopDetection.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetection.h?rev=270410&r1=270409&r2=270410&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetection.h (original)
+++ polly/trunk/include/polly/ScopDetection.h Mon May 23 04:07:08 2016
@@ -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;
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=270410&r1=270409&r2=270410&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Mon May 23 04:07:08 2016
@@ -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) {
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=270410&r1=270409&r2=270410&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Mon May 23 04:07:08 2016
@@ -1500,7 +1500,7 @@ bool ScopDetection::runOnFunction(llvm::
return false;
}
-const ScopDetection::DetectionContext *
+ScopDetection::DetectionContext *
ScopDetection::getDetectionContext(const Region *R) const {
auto DCMIt = DetectionContextMap.find(getBBPairForRegion(R));
if (DCMIt == DetectionContextMap.end())
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=270410&r1=270409&r2=270410&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon May 23 04:07:08 2016
@@ -3052,7 +3052,7 @@ static Loop *getLoopSurroundingRegion(Re
}
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),
More information about the llvm-commits
mailing list