1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Small fix in ProfileEstimator that eliminates duplicated code.

llvm-svn: 80711
This commit is contained in:
Andreas Neustifter 2009-09-01 19:01:59 +00:00
parent d0f70494f5
commit 4ee437055b

View 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);