[polly] r256260 - ScopDetection: Simplify std::distance(....) to BB->size()
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 22 09:38:59 PST 2015
Author: grosser
Date: Tue Dec 22 11:38:59 2015
New Revision: 256260
URL: http://llvm.org/viewvc/llvm-project?rev=256260&view=rev
Log:
ScopDetection: Simplify std::distance(....) to BB->size()
Suggested by: Johannes Doerfert <doerfert at cs.uni-saarland.de>
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=256260&r1=256259&r2=256260&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Tue Dec 22 11:38:59 2015
@@ -1150,7 +1150,7 @@ bool ScopDetection::hasSufficientCompute
for (auto *BB : Context.CurRegion.blocks())
if (Context.CurRegion.contains(LI->getLoopFor(BB)))
- InstCount += std::distance(BB->begin(), BB->end());
+ InstCount += BB->size();
InstCount = InstCount / NumLoops;
More information about the llvm-commits
mailing list