summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-28 22:50:08 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-28 22:50:08 +0000
commite6ff5c51e64e054ba39ba3e95346a06e6f0312ee (patch)
tree388afba19603faca63b12724668a4f3055057a35 /llvm/lib
parentc083578a14298eb13ea90afe0bc9647cc2d28e1c (diff)
downloadbcm5719-llvm-e6ff5c51e64e054ba39ba3e95346a06e6f0312ee.tar.gz
bcm5719-llvm-e6ff5c51e64e054ba39ba3e95346a06e6f0312ee.zip
Reflow isProfitableToMakeFastCC
llvm-svn: 202555
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 7b9015b2d7d..3ceb8b91874 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -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.
OpenPOWER on IntegriCloud