[llvm-commits] CVS: llvm/lib/Transforms/IPO/InlineSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 20 00:55:01 PDT 2003
Changes in directory llvm/lib/Transforms/IPO:
InlineSimple.cpp updated: 1.54 -> 1.55
---
Log message:
Reorder for minor efficiency gain
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/IPO/InlineSimple.cpp
diff -u llvm/lib/Transforms/IPO/InlineSimple.cpp:1.54 llvm/lib/Transforms/IPO/InlineSimple.cpp:1.55
--- llvm/lib/Transforms/IPO/InlineSimple.cpp:1.54 Wed Oct 15 11:48:29 2003
+++ llvm/lib/Transforms/IPO/InlineSimple.cpp Mon Oct 20 00:54:26 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->hasOneUse() && Callee->hasInternalLinkage())
+ if (Callee->hasInternalLinkage() && Callee->hasOneUse())
InlineCost -= 30000;
// Add to the inline quality for properties that make the call valuable to
More information about the llvm-commits
mailing list