[llvm] r202555 - Reflow isProfitableToMakeFastCC

Reid Kleckner reid at kleckner.net
Fri Feb 28 14:50:08 PST 2014


Author: rnk
Date: Fri Feb 28 16:50:08 2014
New Revision: 202555

URL: http://llvm.org/viewvc/llvm-project?rev=202555&view=rev
Log:
Reflow isProfitableToMakeFastCC

Modified:
    llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp

Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=202555&r1=202554&r2=202555&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Fri Feb 28 16:50:08 2014
@@ -1926,7 +1926,8 @@ bool GlobalOpt::OptimizeFunctions(Module
       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.





More information about the llvm-commits mailing list