From: Chandler Carruth Date: Sun, 16 Oct 2011 22:27:54 +0000 (+0000) Subject: Delete a dead member. Dunno if this was ever used, but the current code X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=7a34c8b602e52a2cc71a897131ec74b85c86bb43;hp=5820d6280375716df3f18f39966eb2c595befabe 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142163 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BranchProbabilityInfo.cpp b/lib/Analysis/BranchProbabilityInfo.cpp index 9c54a7eadd4..c37987e1be7 100644 --- a/lib/Analysis/BranchProbabilityInfo.cpp +++ b/lib/Analysis/BranchProbabilityInfo.cpp @@ -36,8 +36,6 @@ class BranchProbabilityAnalysis { typedef std::pair Edge; - DenseMap *Weights; - BranchProbabilityInfo *BP; LoopInfo *LI; @@ -115,9 +113,8 @@ class BranchProbabilityAnalysis { } public: - BranchProbabilityAnalysis(DenseMap *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 @@ void BranchProbabilityInfo::getAnalysisUsage(AnalysisUsage &AU) const { bool BranchProbabilityInfo::runOnFunction(Function &F) { LoopInfo &LI = getAnalysis(); - BranchProbabilityAnalysis BPA(&Weights, this, &LI); + BranchProbabilityAnalysis BPA(this, &LI); return BPA.runOnFunction(F); }