diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-05-15 04:26:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-05-15 04:26:25 +0000 |
commit | b35818eb259b4581cce1297ad130b838515e91bc (patch) | |
tree | fc53ac85515e722d2ada49c5933580cc739b496a /llvm/lib/Transforms/IPO/InlineAlways.cpp | |
parent | 002a45eb64bcd71cb05601fc6c96fa75ab27c557 (diff) | |
download | bcm5719-llvm-b35818eb259b4581cce1297ad130b838515e91bc.tar.gz bcm5719-llvm-b35818eb259b4581cce1297ad130b838515e91bc.zip |
Teach the always inliner to release its inline cost estimates, like the basic
inliner did in r103653. Why does the always inliner even bother with cost
estimates anyways?
llvm-svn: 103858
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineAlways.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/InlineAlways.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineAlways.cpp b/llvm/lib/Transforms/IPO/InlineAlways.cpp index bc8028c020a..8e312e7d918 100644 --- a/llvm/lib/Transforms/IPO/InlineAlways.cpp +++ b/llvm/lib/Transforms/IPO/InlineAlways.cpp @@ -54,6 +54,9 @@ namespace { return removeDeadFunctions(CG, &NeverInline); } virtual bool doInitialization(CallGraph &CG); + void releaseMemory() { + CA.clear(); + } }; } |