[llvm-commits] [llvm] r142163 - /llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Oct 16 15:27:54 PDT 2011
Author: chandlerc
Date: Sun Oct 16 17:27:54 2011
New Revision: 142163
URL: http://llvm.org/viewvc/llvm-project?rev=142163&view=rev
Log:
Delete a dead member. Dunno if this was ever used, but the current code
directly manipulates the weights inside of the BranchProbabilityInfo
that is passed in.
Modified:
llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
Modified: llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp?rev=142163&r1=142162&r2=142163&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp Sun Oct 16 17:27:54 2011
@@ -36,8 +36,6 @@
typedef std::pair<const BasicBlock *, const BasicBlock *> Edge;
- DenseMap<Edge, uint32_t> *Weights;
-
BranchProbabilityInfo *BP;
LoopInfo *LI;
@@ -115,9 +113,8 @@
}
public:
- BranchProbabilityAnalysis(DenseMap<Edge, uint32_t> *W,
- BranchProbabilityInfo *BP, LoopInfo *LI)
- : Weights(W), BP(BP), LI(LI) {
+ BranchProbabilityAnalysis(BranchProbabilityInfo *BP, LoopInfo *LI)
+ : BP(BP), LI(LI) {
}
// Return Heuristics
@@ -366,7 +363,7 @@
bool BranchProbabilityInfo::runOnFunction(Function &F) {
LoopInfo &LI = getAnalysis<LoopInfo>();
- BranchProbabilityAnalysis BPA(&Weights, this, &LI);
+ BranchProbabilityAnalysis BPA(this, &LI);
return BPA.runOnFunction(F);
}
More information about the llvm-commits
mailing list