[SD] Set PollyUseRuntimeAliasChecks correctly

llvm-svn: 309805
This commit is contained in:
Philip Pfaffe 2017-08-02 11:08:01 +00:00
parent 078572b6b1
commit f5a4394ad6
2 changed files with 6 additions and 0 deletions

View File

@ -617,6 +617,7 @@ public:
struct ScopAnalysis : public AnalysisInfoMixin<ScopAnalysis> {
static AnalysisKey Key;
using Result = ScopDetection;
ScopAnalysis();
Result run(Function &F, FunctionAnalysisManager &FAM);
};

View File

@ -1780,6 +1780,11 @@ ScopDetectionWrapperPass::ScopDetectionWrapperPass() : FunctionPass(ID) {
if (IgnoreAliasing)
PollyUseRuntimeAliasChecks = false;
}
ScopAnalysis::ScopAnalysis() {
// Disable runtime alias checks if we ignore aliasing all together.
if (IgnoreAliasing)
PollyUseRuntimeAliasChecks = false;
}
void ScopDetectionWrapperPass::releaseMemory() { Result.reset(); }