1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Reflow isProfitableToMakeFastCC

llvm-svn: 202555
This commit is contained in:
Reid Kleckner 2014-02-28 22:50:08 +00:00
parent 06b78004a4
commit 4698f3f991

View File

@ -1926,7 +1926,8 @@ bool GlobalOpt::OptimizeFunctions(Module &M) {
Changed = true;
++NumFnDeleted;
} else if (F->hasLocalLinkage()) {
if (isProfitableToMakeFastCC(F) && !F->isVarArg() && !F->hasAddressTaken()) {
if (isProfitableToMakeFastCC(F) && !F->isVarArg() &&
!F->hasAddressTaken()) {
// If this function has a calling convention worth changing, is not a
// varargs function, and is only called directly, promote it to use the
// Fast calling convention.