[polly] r287347 - [NFC] Adjust naming scheme of statistic variables
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 06:37:09 PST 2016
Author: jdoerfert
Date: Fri Nov 18 08:37:08 2016
New Revision: 287347
URL: http://llvm.org/viewvc/llvm-project?rev=287347&view=rev
Log:
[NFC] Adjust naming scheme of statistic variables
Suggested-by: Tobias Grosser <tobias at grosser.es>
Modified:
polly/trunk/lib/Analysis/ScopBuilder.cpp
polly/trunk/lib/Analysis/ScopInfo.cpp
polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=287347&r1=287346&r2=287347&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Fri Nov 18 08:37:08 2016
@@ -28,7 +28,7 @@ using namespace polly;
STATISTIC(ScopFound, "Number of valid Scops");
STATISTIC(RichScopFound, "Number of Scops containing a loop");
-STATISTIC(INFEASIBLE_SCOPS,
+STATISTIC(InfeasibleScops,
"Number of SCoPs with statically infeasible context.");
// If the loop is nonaffine/boxed, return the first non-boxed surrounding loop
@@ -689,7 +689,7 @@ ScopBuilder::ScopBuilder(Region *R, Assu
DEBUG(scop->print(dbgs()));
if (!scop->hasFeasibleRuntimeContext()) {
- INFEASIBLE_SCOPS++;
+ InfeasibleScops++;
Msg = "SCoP ends here but was dismissed.";
scop.reset();
} else {
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=287347&r1=287346&r2=287347&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Nov 18 08:37:08 2016
@@ -61,17 +61,17 @@ using namespace polly;
#define DEBUG_TYPE "polly-scops"
-STATISTIC(ASSUMPTION_ALIASING, "Number of aliasing assumptions taken.");
-STATISTIC(ASSUMPTION_INBOUNDS, "Number of inbounds assumptions taken.");
-STATISTIC(ASSUMPTION_WRAPPING, "Number of wrapping assumptions taken.");
-STATISTIC(ASSUMPTION_UNSIGNED, "Number of unsigned assumptions taken.");
-STATISTIC(ASSUMPTION_COMPLEXITY, "Number of too complex SCoPs.");
-STATISTIC(ASSUMPTION_UNPROFITABLE, "Number of unprofitable SCoPs.");
-STATISTIC(ASSUMPTION_ERRORBLOCK, "Number of error block assumptions taken.");
-STATISTIC(ASSUMPTION_INFINITELOOP, "Number of bounded loop assumptions taken.");
-STATISTIC(ASSUMPTION_INVARIANTLOAD,
+STATISTIC(AssumptionsAliasing, "Number of aliasing assumptions taken.");
+STATISTIC(AssumptionsInbounds, "Number of inbounds assumptions taken.");
+STATISTIC(AssumptionsWrapping, "Number of wrapping assumptions taken.");
+STATISTIC(AssumptionsUnsigned, "Number of unsigned assumptions taken.");
+STATISTIC(AssumptionsComplexity, "Number of too complex SCoPs.");
+STATISTIC(AssumptionsUnprofitable, "Number of unprofitable SCoPs.");
+STATISTIC(AssumptionsErrorBlock, "Number of error block assumptions taken.");
+STATISTIC(AssumptionsInfiniteLoop, "Number of bounded loop assumptions taken.");
+STATISTIC(AssumptionsInvariantLoad,
"Number of invariant loads assumptions taken.");
-STATISTIC(ASSUMPTION_DELINERIZATION,
+STATISTIC(AssumptionsDelinearization,
"Number of delinearization assumptions taken.");
// The maximal number of basic sets we allow during domain construction to
@@ -2907,7 +2907,7 @@ bool Scop::buildAliasChecks(AliasAnalysi
// Aliasing assumptions do not go through addAssumption but we still want to
// collect statistics so we do it here explicitly.
if (MinMaxAliasGroups.size())
- ASSUMPTION_ALIASING++;
+ AssumptionsAliasing++;
return true;
}
@@ -3775,34 +3775,34 @@ bool Scop::trackAssumption(AssumptionKin
switch (Kind) {
case ALIASING:
- ASSUMPTION_ALIASING++;
+ AssumptionsAliasing++;
break;
case INBOUNDS:
- ASSUMPTION_INBOUNDS++;
+ AssumptionsInbounds++;
break;
case WRAPPING:
- ASSUMPTION_WRAPPING++;
+ AssumptionsWrapping++;
break;
case UNSIGNED:
- ASSUMPTION_UNSIGNED++;
+ AssumptionsUnsigned++;
break;
case COMPLEXITY:
- ASSUMPTION_COMPLEXITY++;
+ AssumptionsComplexity++;
break;
case PROFITABLE:
- ASSUMPTION_UNPROFITABLE++;
+ AssumptionsUnprofitable++;
break;
case ERRORBLOCK:
- ASSUMPTION_ERRORBLOCK++;
+ AssumptionsErrorBlock++;
break;
case INFINITELOOP:
- ASSUMPTION_INFINITELOOP++;
+ AssumptionsInfiniteLoop++;
break;
case INVARIANTLOAD:
- ASSUMPTION_INVARIANTLOAD++;
+ AssumptionsInvariantLoad++;
break;
case DELINEARIZATION:
- ASSUMPTION_DELINERIZATION++;
+ AssumptionsDelinearization++;
break;
}
Modified: polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslNodeBuilder.cpp?rev=287347&r1=287346&r2=287347&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslNodeBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/IslNodeBuilder.cpp Fri Nov 18 08:37:08 2016
@@ -52,7 +52,7 @@ using namespace llvm;
#define DEBUG_TYPE "polly-codegen"
-STATISTIC(VERSIONED_SCOPS, "Number of SCoPs that required versioning.");
+STATISTIC(VersionedScops, "Number of SCoPs that required versioning.");
// The maximal number of dimensions we allow during invariant load construction.
// More complex access ranges will result in very high compile time and are also
@@ -1344,7 +1344,7 @@ Value *IslNodeBuilder::createRTC(isl_ast
ExprBuilder.setTrackOverflow(false);
if (!isa<ConstantInt>(RTC))
- VERSIONED_SCOPS++;
+ VersionedScops++;
return RTC;
}
More information about the llvm-commits
mailing list