diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
commit | f95d9b99b3ca878e11d7615e7462507237ae3610 (patch) | |
tree | b4b3a40acb2fe3a80579836f97035a54d7c6d25b /llvm/lib/Transforms/IPO/InlineSimple.cpp | |
parent | 30c715b30b5d0611e44da860764846a83598a583 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |