[llvm-commits] [llvm] r80711 - /llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp

Andreas Neustifter astifter at gmx.at
Tue Sep 1 12:01:59 PDT 2009


Author: astifter
Date: Tue Sep  1 14:01:59 2009
New Revision: 80711

URL: http://llvm.org/viewvc/llvm-project?rev=80711&view=rev
Log:
Small fix in ProfileEstimator that eliminates duplicated code.

Modified:
    llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp

Modified: llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp?rev=80711&r1=80710&r2=80711&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp (original)
+++ llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp Tue Sep  1 14:01:59 2009
@@ -176,8 +176,7 @@
     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);





More information about the llvm-commits mailing list