diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-12-22 17:38:59 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-12-22 17:38:59 +0000 |
| commit | c6424ae46c093cf5de4b0eefcd64924621e1e6b7 (patch) | |
| tree | 5f13bac599d40f9a891a4bc40a79c883afdb41e1 /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 785e5223d37c25ed58caa82456b6feb9828e85a1 (diff) | |
| download | bcm5719-llvm-c6424ae46c093cf5de4b0eefcd64924621e1e6b7.tar.gz bcm5719-llvm-c6424ae46c093cf5de4b0eefcd64924621e1e6b7.zip | |
ScopDetection: Simplify std::distance(....) to BB->size()
Suggested by: Johannes Doerfert <doerfert@cs.uni-saarland.de>
llvm-svn: 256260
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 1083507b744..7e8075d8315 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1150,7 +1150,7 @@ bool ScopDetection::hasSufficientCompute(DetectionContext &Context, 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; |

