summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
committerChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
commitf95d9b99b3ca878e11d7615e7462507237ae3610 (patch)
treeb4b3a40acb2fe3a80579836f97035a54d7c6d25b /llvm/lib/Transforms/IPO/InlineSimple.cpp
parent30c715b30b5d0611e44da860764846a83598a583 (diff)
downloadbcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.tar.gz
bcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.zip
Decrease usage of use_size()
llvm-svn: 9135
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/InlineSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index b2299c3ecfa..0e2f0190135 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp
@@ -49,7 +49,7 @@ int SimpleInliner::getInlineCost(CallSite CS) {
// If there is only one call of the function, and it has internal linkage,
// make it almost guaranteed to be inlined.
//
- if (Callee->use_size() == 1 && Callee->hasInternalLinkage())
+ if (Callee->hasOneUse() && Callee->hasInternalLinkage())
InlineCost -= 30000;
// Add to the inline quality for properties that make the call valuable to
OpenPOWER on IntegriCloud