mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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
This commit is contained in:
parent
ee793a6c19
commit
19531d113c
@ -176,8 +176,7 @@ void ProfileEstimatorPass::recurseBasicBlock(BasicBlock *BB) {
|
|||||||
EdgeInformation[BB->getParent()][edge] = BBWeight;
|
EdgeInformation[BB->getParent()][edge] = BBWeight;
|
||||||
printEdgeWeight(edge);
|
printEdgeWeight(edge);
|
||||||
}
|
}
|
||||||
for ( succ_iterator bbi = succ_begin(BB), bbe = succ_end(BB);
|
for ( ; bbi != bbe; ++bbi ) {
|
||||||
bbi != bbe; ++bbi ) {
|
|
||||||
if (ProcessedSuccs.insert(*bbi).second) {
|
if (ProcessedSuccs.insert(*bbi).second) {
|
||||||
Edge edge = getEdge(BB,*bbi);
|
Edge edge = getEdge(BB,*bbi);
|
||||||
double w = getEdgeWeight(edge);
|
double w = getEdgeWeight(edge);
|
||||||
|
Loading…
Reference in New Issue
Block a user