1
0
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:
Dan Gohman 2010-02-05 19:24:11 +00:00
parent 326cf88352
commit 96cad72d2d

View File

@ -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;