[polly] r283745 - [DepInfo] Print -debug output outside of max-operations scope.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 04:45:59 PDT 2016


Author: meinersbur
Date: Mon Oct 10 06:45:59 2016
New Revision: 283745

URL: http://llvm.org/viewvc/llvm-project?rev=283745&view=rev
Log:
[DepInfo] Print -debug output outside of max-operations scope.

ISL tries to simplify the polyhedral operations before printing its objects.
This increases the operations counter and therefore can contribute to hitting
the operations limit. Therefore the result could be different when -debug output
is enabled, making debugging harder.

Modified:
    polly/trunk/lib/Analysis/DependenceInfo.cpp

Modified: polly/trunk/lib/Analysis/DependenceInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/DependenceInfo.cpp?rev=283745&r1=283744&r2=283745&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/DependenceInfo.cpp (original)
+++ polly/trunk/lib/Analysis/DependenceInfo.cpp Mon Oct 10 06:45:59 2016
@@ -370,14 +370,14 @@ void Dependences::calculateDependences(S
     }
   }
 
+  DEBUG(dbgs() << "Read: " << Read << "\n";
+        dbgs() << "Write: " << Write << "\n";
+        dbgs() << "MayWrite: " << MayWrite << "\n";
+        dbgs() << "Schedule: " << Schedule << "\n");
+
   {
     IslMaxOperationsGuard MaxOpGuard(IslCtx.get(), OptComputeOut);
 
-    DEBUG(dbgs() << "Read: " << Read << "\n";
-          dbgs() << "Write: " << Write << "\n";
-          dbgs() << "MayWrite: " << MayWrite << "\n";
-          dbgs() << "Schedule: " << Schedule << "\n");
-
     RAW = WAW = WAR = RED = nullptr;
 
     if (OptAnalysisType == VALUE_BASED_ANALYSIS) {




More information about the llvm-commits mailing list