mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Implement releaseMemory in CodeGenPrepare and free the BackEdges
container data. This prevents it from holding onto dangling pointers and potentially behaving unpredictably. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a62fe66f99
commit
aa0e523287
@ -63,6 +63,10 @@ namespace {
|
|||||||
AU.addPreserved<ProfileInfo>();
|
AU.addPreserved<ProfileInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void releaseMemory() {
|
||||||
|
BackEdges.clear();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool EliminateMostlyEmptyBlocks(Function &F);
|
bool EliminateMostlyEmptyBlocks(Function &F);
|
||||||
bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
|
bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user