mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
make the inliner do less work for leaf functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eae220259f
commit
4471136e4d
@ -333,6 +333,10 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
|
|||||||
|
|
||||||
DEBUG(dbgs() << ": " << CallSites.size() << " call sites.\n");
|
DEBUG(dbgs() << ": " << CallSites.size() << " call sites.\n");
|
||||||
|
|
||||||
|
// If there are no calls in this function, exit early.
|
||||||
|
if (CallSites.empty())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Now that we have all of the call sites, move the ones to functions in the
|
// Now that we have all of the call sites, move the ones to functions in the
|
||||||
// current SCC to the end of the list.
|
// current SCC to the end of the list.
|
||||||
unsigned FirstCallInSCC = CallSites.size();
|
unsigned FirstCallInSCC = CallSites.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user