Skip to content

Commit fe8abbf

Browse files
committed
[BPI] Clear handles when releasing memory (NFC)
This reduces max-rss of sqlite compilation by 2.5%.
1 parent 3f7439b commit fe8abbf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

llvm/lib/Analysis/BranchProbabilityInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ bool BranchProbabilityInfo::calcInvokeHeuristics(const BasicBlock *BB) {
854854

855855
void BranchProbabilityInfo::releaseMemory() {
856856
Probs.clear();
857+
Handles.clear();
857858
}
858859

859860
bool BranchProbabilityInfo::invalidate(Function &, const PreservedAnalyses &PA,

0 commit comments

Comments
 (0)