mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Implement releaseMemory in CodeGenPrepare and free the BackEdges
container data. This prevents it from holding onto dangling pointers and potentially behaving unpredictably. llvm-svn: 95409
This commit is contained in:
parent
326cf88352
commit
96cad72d2d
@ -63,6 +63,10 @@ namespace {
|
||||
AU.addPreserved<ProfileInfo>();
|
||||
}
|
||||
|
||||
virtual void releaseMemory() {
|
||||
BackEdges.clear();
|
||||
}
|
||||
|
||||
private:
|
||||
bool EliminateMostlyEmptyBlocks(Function &F);
|
||||
bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
|
||||
|
Loading…
Reference in New Issue
Block a user