mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
5820d62803
commit
7a34c8b602
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user