mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Narrow Callee scope, suggestion from David Blaikie.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
315ee37963
commit
5ca144436a
@ -469,8 +469,8 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
|
|||||||
// If this is a direct call to an external function, we can never inline
|
// If this is a direct call to an external function, we can never inline
|
||||||
// it. If it is an indirect call, inlining may resolve it to be a
|
// it. If it is an indirect call, inlining may resolve it to be a
|
||||||
// direct call, so we keep it.
|
// direct call, so we keep it.
|
||||||
Function *Callee = CS.getCalledFunction();
|
if (Function *Callee = CS.getCalledFunction())
|
||||||
if (Callee && Callee->isDeclaration())
|
if (Callee->isDeclaration())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CallSites.push_back(std::make_pair(CS, -1));
|
CallSites.push_back(std::make_pair(CS, -1));
|
||||||
|
Loading…
Reference in New Issue
Block a user