[polly] r309805 - [SD] Set PollyUseRuntimeAliasChecks correctly

Philip Pfaffe via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 04:08:01 PDT 2017


Author: pfaffe
Date: Wed Aug  2 04:08:01 2017
New Revision: 309805

URL: http://llvm.org/viewvc/llvm-project?rev=309805&view=rev
Log:
[SD] Set PollyUseRuntimeAliasChecks correctly

Modified:
    polly/trunk/include/polly/ScopDetection.h
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/include/polly/ScopDetection.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetection.h?rev=309805&r1=309804&r2=309805&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetection.h (original)
+++ polly/trunk/include/polly/ScopDetection.h Wed Aug  2 04:08:01 2017
@@ -617,6 +617,7 @@ public:
 struct ScopAnalysis : public AnalysisInfoMixin<ScopAnalysis> {
   static AnalysisKey Key;
   using Result = ScopDetection;
+  ScopAnalysis();
   Result run(Function &F, FunctionAnalysisManager &FAM);
 };
 

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=309805&r1=309804&r2=309805&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Wed Aug  2 04:08:01 2017
@@ -1780,6 +1780,11 @@ ScopDetectionWrapperPass::ScopDetectionW
   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(); }
 




More information about the llvm-commits mailing list