[polly] r309807 - [SI][NewPM] Collect loop count statistics
Philip Pfaffe via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 04:14:41 PDT 2017
Author: pfaffe
Date: Wed Aug 2 04:14:41 2017
New Revision: 309807
URL: http://llvm.org/viewvc/llvm-project?rev=309807&view=rev
Log:
[SI][NewPM] Collect loop count statistics
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=309807&r1=309806&r2=309807&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Aug 2 04:14:41 2017
@@ -5259,6 +5259,9 @@ ScopInfo::ScopInfo(const DataLayout &DL,
std::unique_ptr<Scop> S = SB.getScop();
if (!S)
continue;
+ ScopDetection::LoopStats Stats =
+ ScopDetection::countBeneficialLoops(&S->getRegion(), SE, LI, 0);
+ updateLoopCountStatistic(Stats);
bool Inserted = RegionToScopMap.insert({R, std::move(S)}).second;
assert(Inserted && "Building Scop for the same region twice!");
(void)Inserted;
More information about the llvm-commits
mailing list