Delete a dead member. Dunno if this was ever used, but the current code
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 22:27:54 +0000 (22:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 22:27:54 +0000 (22:27 +0000)
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

lib/Analysis/BranchProbabilityInfo.cpp

index 9c54a7eadd491a20acb96d2f8ee29a6688e506ed..c37987e1be7c3930c5690633b292162da86937c3 100644 (file)
@@ -36,8 +36,6 @@ class BranchProbabilityAnalysis {
 
   typedef std::pair<const BasicBlock *, const BasicBlock *> Edge;
 
-  DenseMap<Edge, uint32_t> *Weights;
-
   BranchProbabilityInfo *BP;
 
   LoopInfo *LI;
@@ -115,9 +113,8 @@ class BranchProbabilityAnalysis {
   }
 
 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 @@ void BranchProbabilityInfo::getAnalysisUsage(AnalysisUsage &AU) const {
 
 bool BranchProbabilityInfo::runOnFunction(Function &F) {
   LoopInfo &LI = getAnalysis<LoopInfo>();
-  BranchProbabilityAnalysis BPA(&Weights, this, &LI);
+  BranchProbabilityAnalysis BPA(this, &LI);
   return BPA.runOnFunction(F);
 }