Skip to content
Snippets Groups Projects
Commit 4739e41c authored by Dan Gohman's avatar Dan Gohman
Browse files

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
parent 342762fd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment