From f95d9b99b3ca878e11d7615e7462507237ae3610 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Oct 2003 16:48:29 +0000 Subject: Decrease usage of use_size() llvm-svn: 9135 --- llvm/lib/Transforms/IPO/InlineSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp') 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 -- cgit v1.2.3