aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-05-15 04:26:25 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-05-15 04:26:25 +0000
commit54b78dca4e98f15e1723368fabda6cdf81f73956 (patch)
tree0be84af42870263aeb629a7ccc8c2ffb3f65d060
parent1462a9b97f25fac50369c69d1848016199e66eb5 (diff)
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? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103858 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/InlineAlways.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/InlineAlways.cpp b/lib/Transforms/IPO/InlineAlways.cpp
index bc8028c020..8e312e7d91 100644
--- a/lib/Transforms/IPO/InlineAlways.cpp
+++ b/lib/Transforms/IPO/InlineAlways.cpp
@@ -54,6 +54,9 @@ namespace {
return removeDeadFunctions(CG, &NeverInline);
}
virtual bool doInitialization(CallGraph &CG);
+ void releaseMemory() {
+ CA.clear();
+ }
};
}