diff options
author | Duncan Sands <baldrick@free.fr> | 2010-06-29 11:39:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-06-29 11:39:45 +0000 |
commit | 67aa21d7b59fc30534745e6b408886307ff992d9 (patch) | |
tree | 8564338345385349e3a9ccd485c31b1ed4d4e96c /llvm/lib/Analysis/ProfileInfo.cpp | |
parent | 6d28e73acc79830a9a35fb9a3e7c7d6084936bbe (diff) | |
download | bcm5719-llvm-67aa21d7b59fc30534745e6b408886307ff992d9.tar.gz bcm5719-llvm-67aa21d7b59fc30534745e6b408886307ff992d9.zip |
Remove a pointless variable.
llvm-svn: 107128
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/ProfileInfo.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ProfileInfo.cpp b/llvm/lib/Analysis/ProfileInfo.cpp index 662576e1d0a..38dcd2580e7 100644 --- a/llvm/lib/Analysis/ProfileInfo.cpp +++ b/llvm/lib/Analysis/ProfileInfo.cpp @@ -577,8 +577,6 @@ static void readEdge(ProfileInfo *PI, ProfileInfo::Edge e, double &calcw, std::s template<> bool ProfileInfoT<Function,BasicBlock>::EstimateMissingEdges(const BasicBlock *BB) { - bool hasNoSuccessors = false; - double inWeight = 0; std::set<Edge> inMissing; std::set<const BasicBlock*> ProcessedPreds; @@ -596,10 +594,8 @@ bool ProfileInfoT<Function,BasicBlock>::EstimateMissingEdges(const BasicBlock *B std::set<Edge> outMissing; std::set<const BasicBlock*> ProcessedSuccs; succ_const_iterator sbbi = succ_begin(BB), sbbe = succ_end(BB); - if (sbbi == sbbe) { + if (sbbi == sbbe) readEdge(this,getEdge(BB,0),outWeight,outMissing); - hasNoSuccessors = true; - } for ( ; sbbi != sbbe; ++sbbi ) { if (ProcessedSuccs.insert(*sbbi).second) { readEdge(this,getEdge(BB,*sbbi),outWeight,outMissing); |