mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove a bunch of empty, dead, and no-op methods from all of these
interfaces. These methods were used in the old inline cost system where there was a persistent cache that had to be updated, invalidated, and cleared. We're now doing more direct computations that don't require this intricate dance. Even if we resume some level of caching, it would almost certainly have a simpler and more narrow interface than this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -65,15 +65,6 @@ struct Inliner : public CallGraphSCCPass {
|
||||
///
|
||||
virtual InlineCost getInlineCost(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;
|
||||
|
||||
/// growCachedCostInfo - update the cached cost info for Caller after Callee
|
||||
/// has been inlined.
|
||||
virtual void growCachedCostInfo(Function *Caller, Function *Callee) = 0;
|
||||
|
||||
/// removeDeadFunctions - Remove dead functions.
|
||||
///
|
||||
/// This also includes a hack in the form of the 'AlwaysInlineOnly' flag
|
||||
|
Reference in New Issue
Block a user