diff options
| author | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-09-01 19:01:59 +0000 |
|---|---|---|
| committer | Andreas Neustifter <astifter-llvm@gmx.at> | 2009-09-01 19:01:59 +0000 |
| commit | 4fde5c756d6f9c02faf09240478efd299abe28a0 (patch) | |
| tree | c21603fddcb56cc25a32cc0410aef90deae6bc3e /llvm/lib/Analysis/ProfileEstimatorPass.cpp | |
| parent | e4459e466f1fc49017a0b0ef2c138c1523420bf3 (diff) | |
| download | bcm5719-llvm-4fde5c756d6f9c02faf09240478efd299abe28a0.tar.gz bcm5719-llvm-4fde5c756d6f9c02faf09240478efd299abe28a0.zip | |
Small fix in ProfileEstimator that eliminates duplicated code.
llvm-svn: 80711
Diffstat (limited to 'llvm/lib/Analysis/ProfileEstimatorPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ProfileEstimatorPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ProfileEstimatorPass.cpp b/llvm/lib/Analysis/ProfileEstimatorPass.cpp index 3af7eba94e3..ef72383710d 100644 --- a/llvm/lib/Analysis/ProfileEstimatorPass.cpp +++ b/llvm/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); |

