Small fix in ProfileEstimator that eliminates duplicated code.
authorAndreas Neustifter <astifter-llvm@gmx.at>
Tue, 1 Sep 2009 19:01:59 +0000 (19:01 +0000)
committerAndreas Neustifter <astifter-llvm@gmx.at>
Tue, 1 Sep 2009 19:01:59 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80711 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileEstimatorPass.cpp

index 3af7eba94e3c9888207caf6738016464e17c37cd..ef72383710dc25728d1fc1ff5c6bf2a5c00ecba4 100644 (file)
@@ -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);