Reflow isProfitableToMakeFastCC
authorReid Kleckner <reid@kleckner.net>
Fri, 28 Feb 2014 22:50:08 +0000 (22:50 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 28 Feb 2014 22:50:08 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202555 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalOpt.cpp

index 7b9015b2d7d4fa03de6fd57e582f9e06467f908c..3ceb8b918743d05195cfff6ed4532c8bad649298 100644 (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.