forked from OSchip/llvm-project
[SD] Set PollyUseRuntimeAliasChecks correctly
llvm-svn: 309805
This commit is contained in:
parent
078572b6b1
commit
f5a4394ad6
|
@ -617,6 +617,7 @@ public:
|
|||
struct ScopAnalysis : public AnalysisInfoMixin<ScopAnalysis> {
|
||||
static AnalysisKey Key;
|
||||
using Result = ScopDetection;
|
||||
ScopAnalysis();
|
||||
Result run(Function &F, FunctionAnalysisManager &FAM);
|
||||
};
|
||||
|
||||
|
|
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue