mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Adjustments to last patch based on review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -61,6 +61,11 @@ struct Inliner : public CallGraphSCCPass {
|
||||
///
|
||||
virtual float getInlineFudgeFactor(CallSite CS) = 0;
|
||||
|
||||
/// resetCachedCostInfo - erase any cached cost data from the derived class.
|
||||
/// If the derived class has no such data this can be empty.
|
||||
///
|
||||
virtual void resetCachedCostInfo(Function* Caller) = 0;
|
||||
|
||||
/// removeDeadFunctions - Remove dead functions that are not included in
|
||||
/// DNR (Do Not Remove) list.
|
||||
bool removeDeadFunctions(CallGraph &CG,
|
||||
|
||||
@@ -128,6 +128,11 @@ namespace llvm {
|
||||
/// getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a
|
||||
/// higher threshold to determine if the function call should be inlined.
|
||||
float getInlineFudgeFactor(CallSite CS);
|
||||
|
||||
/// resetCachedFunctionInfo - erase any cached cost info for this function.
|
||||
void resetCachedCostInfo(Function* Caller) {
|
||||
CachedFunctionInfo[Caller].NumBlocks = 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user