[polly] r221038 - [FIX] Move the statistic code to fix the build.
Johannes Doerfert
doerfert at cs.uni-saarland.de
Fri Oct 31 18:30:11 PDT 2014
Author: jdoerfert
Date: Fri Oct 31 20:30:11 2014
New Revision: 221038
URL: http://llvm.org/viewvc/llvm-project?rev=221038&view=rev
Log:
[FIX] Move the statistic code to fix the build.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=221038&r1=221037&r2=221038&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Oct 31 20:30:11 2014
@@ -1804,24 +1804,25 @@ bool ScopInfo::runOnRegion(Region *R, RG
return false;
}
- // Statistics.
- ++ScopFound;
- if (scop->getMaxLoopDepth() > 0)
- ++RichScopFound;
-
scop = new Scop(*tempScop, LI, SE, ctx);
- if (!PollyUseRuntimeAliasChecks)
+ if (!PollyUseRuntimeAliasChecks) {
+ // Statistics.
+ ++ScopFound;
+ if (scop->getMaxLoopDepth() > 0)
+ ++RichScopFound;
return false;
+ }
// If a problem occurs while building the alias groups we need to delete
// this SCoP and pretend it wasn't valid in the first place.
- if (scop->buildAliasGroups(AA))
+ if (scop->buildAliasGroups(AA)) {
+ // Statistics.
+ ++ScopFound;
+ if (scop->getMaxLoopDepth() > 0)
+ ++RichScopFound;
return false;
-
- --ScopFound;
- if (tempScop->getMaxLoopDepth() > 0)
- --RichScopFound;
+ }
DEBUG(dbgs()
<< "\n\nNOTE: Run time checks for " << scop->getNameStr()
More information about the llvm-commits
mailing list