mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Few minor changes that were requested. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86e69fa901
commit
745d8c95ef
@ -102,11 +102,15 @@ unsigned InlineCostAnalyzer::FunctionInfo::
|
||||
return Reduction;
|
||||
}
|
||||
|
||||
// callIsSmall - If a call will lower to a single selection DAG node, or
|
||||
// callIsSmall - If a call is likely to lower to a single target instruction, or
|
||||
// is otherwise deemed small return true.
|
||||
// TODO: Perhaps calls like memcpy, strcpy, etc?
|
||||
static bool callIsSmall(const Function *F) {
|
||||
if (F && !F->hasLocalLinkage() && F->hasName()) {
|
||||
if (!F) return false;
|
||||
|
||||
if (F->hasLocalLinkage()) return false;
|
||||
|
||||
if (F->hasName()) {
|
||||
StringRef Name = F->getName();
|
||||
|
||||
// These will all likely lower to a single selection DAG node.
|
||||
|
Loading…
Reference in New Issue
Block a user