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