mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +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. llvm-svn: 142163
This commit is contained in:
parent
aabf428f3c
commit
0334d27ec8
@ -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