mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Reintroduce InlineCostAnalyzer::getInlineCost() variant with explicit callee
parameter until we have a more sensible API for doing the same thing. Reviewed by Chandler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -988,8 +988,11 @@ void CallAnalyzer::dump() {
|
||||
}
|
||||
|
||||
InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, int Threshold) {
|
||||
Function *Callee = CS.getCalledFunction();
|
||||
return getInlineCost(CS, CS.getCalledFunction(), Threshold);
|
||||
}
|
||||
|
||||
InlineCost InlineCostAnalyzer::getInlineCost(CallSite CS, Function *Callee,
|
||||
int Threshold) {
|
||||
// Don't inline functions which can be redefined at link-time to mean
|
||||
// something else. Don't inline functions marked noinline or call sites
|
||||
// marked noinline.
|
||||
|
Reference in New Issue
Block a user