mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Make callIsSmall accessible as a utility function.
llvm-svn: 101463
This commit is contained in:
parent
2d575a91e0
commit
f754ff8ee9
@ -189,6 +189,10 @@ namespace llvm {
|
||||
/// eliminated.
|
||||
void growCachedCostInfo(Function* Caller, Function* Callee);
|
||||
};
|
||||
|
||||
/// callIsSmall - If a call is likely to lower to a single target instruction,
|
||||
/// or is otherwise deemed small return true.
|
||||
bool callIsSmall(const Function *Callee);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -108,10 +108,10 @@ unsigned InlineCostAnalyzer::FunctionInfo::
|
||||
return Reduction;
|
||||
}
|
||||
|
||||
// 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) {
|
||||
/// 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?
|
||||
bool llvm::callIsSmall(const Function *F) {
|
||||
if (!F) return false;
|
||||
|
||||
if (F->hasLocalLinkage()) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user