summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-14 10:57:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-14 10:57:23 +0000
commitfd9b4d9813e81f8772db4dbeb2833ba91dfe5f1c (patch)
tree2d516ddb92152dbdde4f22b8572263b6c65d88d4 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent0a31d149ea337e6760ccc0a9785ac38ce5c54677 (diff)
downloadbcm5719-llvm-fd9b4d9813e81f8772db4dbeb2833ba91dfe5f1c.tar.gz
bcm5719-llvm-fd9b4d9813e81f8772db4dbeb2833ba91dfe5f1c.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 412d0b1fab6..304f16717ba 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -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.
OpenPOWER on IntegriCloud