forked from OSchip/llvm-project
It helps to deallocate memory as well as allocate it. =] This actually
cleans up all the chains allocated during the processing of each function so that for very large inputs we don't just grow memory usage without bound. llvm-svn: 144533
This commit is contained in:
parent
0a31d149ea
commit
fd9b4d9813
|
@ -766,6 +766,7 @@ bool MachineBlockPlacement::runOnMachineFunction(MachineFunction &F) {
|
|||
AlignLoops(F);
|
||||
|
||||
BlockToChain.clear();
|
||||
ChainAllocator.DestroyAll();
|
||||
|
||||
// We always return true as we have no way to track whether the final order
|
||||
// differs from the original order.
|
||||
|
|
Loading…
Reference in New Issue