From 21aa3dc0146fb6e7bc170d6d531067dcde9195d0 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Sat, 1 Nov 2014 01:30:11 +0000 Subject: [PATCH] [FIX] Move the statistic code to fix the build. llvm-svn: 221038 --- polly/lib/Analysis/ScopInfo.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 3ce42a0..b3f0550 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -1804,24 +1804,25 @@ bool ScopInfo::runOnRegion(Region *R, RGPassManager &RGM) { 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() -- 2.7.4