llvm.org GIT mirror llvm / 52d55bd
Make callIsSmall accessible as a utility function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101463 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
2 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
188188 /// eliminated.
189189 void growCachedCostInfo(Function* Caller, Function* Callee);
190190 };
191
192 /// callIsSmall - If a call is likely to lower to a single target instruction,
193 /// or is otherwise deemed small return true.
194 bool callIsSmall(const Function *Callee);
191195 }
192196
193197 #endif
107107 return Reduction;
108108 }
109109
110 // callIsSmall - If a call is likely to lower to a single target instruction, or
111 // is otherwise deemed small return true.
112 // TODO: Perhaps calls like memcpy, strcpy, etc?
113 static bool callIsSmall(const Function *F) {
110 /// callIsSmall - If a call is likely to lower to a single target instruction,
111 /// or is otherwise deemed small return true.
112 /// TODO: Perhaps calls like memcpy, strcpy, etc?
113 bool llvm::callIsSmall(const Function *F) {
114114 if (!F) return false;
115115
116116 if (F->hasLocalLinkage()) return false;