mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Move per-function inline threshold calculation to a method.
No functional change except the forgotten test for InlineLimit.getNumOccurrences() == 0 in the CurrentThreshold2 calculation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -51,6 +51,12 @@ struct Inliner : public CallGraphSCCPass {
|
||||
///
|
||||
unsigned getInlineThreshold() const { return InlineThreshold; }
|
||||
|
||||
/// Calculate the inline threshold for given Caller. This threshold is lower
|
||||
/// if Caller is marked with OptimizeForSize and -inline-threshold is not
|
||||
/// given on the comand line.
|
||||
///
|
||||
unsigned getInlineThreshold(Function* Caller) const;
|
||||
|
||||
/// getInlineCost - This method must be implemented by the subclass to
|
||||
/// determine the cost of inlining the specified call site. If the cost
|
||||
/// returned is greater than the current inline threshold, the call site is
|
||||
|
Reference in New Issue
Block a user