summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-20 05:54:26 +0000
committerChris Lattner <sabre@nondot.org>2003-10-20 05:54:26 +0000
commit2d9c117e219e062bfde79830ccbd4bef6da7b0d5 (patch)
treea56219247c9b94bf49759fa766b86366a099af68 /llvm/lib/Transforms/IPO/InlineSimple.cpp
parent6acb1bedb188a3fdcca9b4decd94d77d826bab6f (diff)
downloadbcm5719-llvm-2d9c117e219e062bfde79830ccbd4bef6da7b0d5.tar.gz
bcm5719-llvm-2d9c117e219e062bfde79830ccbd4bef6da7b0d5.zip
Reorder for minor efficiency gain
llvm-svn: 9285
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 0e2f0190135..8568235c83a 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->hasOneUse() && Callee->hasInternalLinkage())
+ if (Callee->hasInternalLinkage() && Callee->hasOneUse())
InlineCost -= 30000;
// Add to the inline quality for properties that make the call valuable to
OpenPOWER on IntegriCloud