Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BPI] Clear handles when releasing memory (NFC)
This reduces max-rss of sqlite compilation by 2.5%.
  • Loading branch information
nikic committed Apr 7, 2020
1 parent 3f7439b commit fe8abbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Analysis/BranchProbabilityInfo.cpp
Expand Up @@ -854,6 +854,7 @@ bool BranchProbabilityInfo::calcInvokeHeuristics(const BasicBlock *BB) {

void BranchProbabilityInfo::releaseMemory() {
Probs.clear();
Handles.clear();
}

bool BranchProbabilityInfo::invalidate(Function &, const PreservedAnalyses &PA,
Expand Down

0 comments on commit fe8abbf

Please sign in to comment.