aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter@gmx.at>2009-09-01 19:01:59 +0000
committerAndreas Neustifter <astifter@gmx.at>2009-09-01 19:01:59 +0000
commit8093b5dc9a1e310a79fc7af83c1fc2e1867c2ef7 (patch)
tree8c69ddd913ed81e54e89465bfdbabacab63f1d87
parentd5496d944b0095cfd0d1cc93386a3c569b7f06d5 (diff)
downloadexternal_llvm-8093b5dc9a1e310a79fc7af83c1fc2e1867c2ef7.zip
external_llvm-8093b5dc9a1e310a79fc7af83c1fc2e1867c2ef7.tar.gz
external_llvm-8093b5dc9a1e310a79fc7af83c1fc2e1867c2ef7.tar.bz2
Small fix in ProfileEstimator that eliminates duplicated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80711 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/ProfileEstimatorPass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/ProfileEstimatorPass.cpp b/lib/Analysis/ProfileEstimatorPass.cpp
index 3af7eba..ef72383 100644
--- a/lib/Analysis/ProfileEstimatorPass.cpp
+++ b/lib/Analysis/ProfileEstimatorPass.cpp
@@ -176,8 +176,7 @@ void ProfileEstimatorPass::recurseBasicBlock(BasicBlock *BB) {
EdgeInformation[BB->getParent()][edge] = BBWeight;
printEdgeWeight(edge);
}
- for ( succ_iterator bbi = succ_begin(BB), bbe = succ_end(BB);
- bbi != bbe; ++bbi ) {
+ for ( ; bbi != bbe; ++bbi ) {
if (ProcessedSuccs.insert(*bbi).second) {
Edge edge = getEdge(BB,*bbi);
double w = getEdgeWeight(edge);