summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Pfaffe <philip.pfaffe@gmail.com>2017-08-02 11:08:01 +0000
committerPhilip Pfaffe <philip.pfaffe@gmail.com>2017-08-02 11:08:01 +0000
commitf5a4394ad6a402795ee0e5b3c8836b955ba00aed (patch)
tree582f1a93166cee833059ca75db199840b8584973
parent078572b6b1def7297405ee62a46cd8005f5ff4fc (diff)
downloadbcm5719-llvm-f5a4394ad6a402795ee0e5b3c8836b955ba00aed.tar.gz
bcm5719-llvm-f5a4394ad6a402795ee0e5b3c8836b955ba00aed.zip
[SD] Set PollyUseRuntimeAliasChecks correctly
llvm-svn: 309805
-rw-r--r--polly/include/polly/ScopDetection.h1
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h
index c674d153ae5..46921cea703 100644
--- a/polly/include/polly/ScopDetection.h
+++ b/polly/include/polly/ScopDetection.h
@@ -617,6 +617,7 @@ public:
struct ScopAnalysis : public AnalysisInfoMixin<ScopAnalysis> {
static AnalysisKey Key;
using Result = ScopDetection;
+ ScopAnalysis();
Result run(Function &F, FunctionAnalysisManager &FAM);
};
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 4039811987d..a2bbb71b3d8 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -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(); }
OpenPOWER on IntegriCloud