From b618d08af241953a4ae62336aa7a5a0787e4dffc Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 19 Mar 2009 18:03:56 +0000 Subject: 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 --- include/llvm/Transforms/IPO/InlinerPass.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/llvm/Transforms') 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 + 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 &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. -- cgit v1.1