[llvm-commits] CVS: llvm/lib/Transforms/IPO/InlineSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 15 11:49:16 PDT 2003


Changes in directory llvm/lib/Transforms/IPO:

InlineSimple.cpp updated: 1.53 -> 1.54

---
Log message:

Decrease usage of use_size()


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Transforms/IPO/InlineSimple.cpp
diff -u llvm/lib/Transforms/IPO/InlineSimple.cpp:1.53 llvm/lib/Transforms/IPO/InlineSimple.cpp:1.54
--- llvm/lib/Transforms/IPO/InlineSimple.cpp:1.53	Fri Oct 10 12:48:12 2003
+++ llvm/lib/Transforms/IPO/InlineSimple.cpp	Wed Oct 15 11:48:29 2003
@@ -49,7 +49,7 @@
   // 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





More information about the llvm-commits mailing list