diff options
author | Dale Johannesen <dalej@apple.com> | 2009-03-19 18:03:56 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-03-19 18:03:56 +0000 |
commit | b618d08af241953a4ae62336aa7a5a0787e4dffc (patch) | |
tree | 5d7e707449c2bad293bd1b09bc3a07bc7acc475e /include/llvm/Transforms | |
parent | a942bc5c4f18a583a431659598c9f62685b1d136 (diff) | |
download | external_llvm-b618d08af241953a4ae62336aa7a5a0787e4dffc.zip external_llvm-b618d08af241953a4ae62336aa7a5a0787e4dffc.tar.gz external_llvm-b618d08af241953a4ae62336aa7a5a0787e4dffc.tar.bz2 |
Clear the cached cost when removing a function in
the inliner; prevents nondeterministic behavior
when the same address is reallocated.
Don't build call graph nodes for debug intrinsic calls;
they're useless, and there were typically a lot of them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO/InlinerPass.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h index 3aed649..a0a11a1 100644 --- a/include/llvm/Transforms/IPO/InlinerPass.h +++ b/include/llvm/Transforms/IPO/InlinerPass.h @@ -19,6 +19,9 @@ #include "llvm/CallGraphSCCPass.h" #include "llvm/Transforms/Utils/InlineCost.h" +#include "llvm/Target/TargetData.h" +#include <set> + namespace llvm { class CallSite; @@ -43,6 +46,10 @@ struct Inliner : public CallGraphSCCPass { // processing to avoid breaking the SCC traversal. virtual bool doFinalization(CallGraph &CG); + // InlineCallIfPossible + bool InlineCallIfPossible(CallSite CS, CallGraph &CG, + const std::set<Function*> &SCCFunctions, + const TargetData &TD); /// This method returns the value specified by the -inline-threshold value, /// specified on the command line. This is typically not directly needed. |