[polly] r287263 - [DBG] Collect statistics about statically infeasible SCoPs

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 13:44:47 PST 2016


Author: jdoerfert
Date: Thu Nov 17 15:44:47 2016
New Revision: 287263

URL: http://llvm.org/viewvc/llvm-project?rev=287263&view=rev
Log:
[DBG] Collect statistics about statically infeasible SCoPs

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

Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=287263&r1=287262&r2=287263&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Thu Nov 17 15:44:47 2016
@@ -28,6 +28,8 @@ using namespace polly;
 
 STATISTIC(ScopFound, "Number of valid Scops");
 STATISTIC(RichScopFound, "Number of Scops containing a loop");
+STATISTIC(INFEASIBLE_SCOPS,
+          "Number of SCoPs with statically infeasible context.");
 
 // If the loop is nonaffine/boxed, return the first non-boxed surrounding loop
 // for Polly. If the loop is affine, return the loop itself. Do not call
@@ -687,6 +689,7 @@ ScopBuilder::ScopBuilder(Region *R, Assu
   DEBUG(scop->print(dbgs()));
 
   if (!scop->hasFeasibleRuntimeContext()) {
+    INFEASIBLE_SCOPS++;
     Msg = "SCoP ends here but was dismissed.";
     scop.reset();
   } else {




More information about the llvm-commits mailing list