[llvm-commits] [dragonegg] r97388 - /dragonegg/trunk/llvm-backend.cpp

Duncan Sands baldrick at free.fr
Sun Feb 28 05:07:24 PST 2010


Author: baldrick
Date: Sun Feb 28 07:07:24 2010
New Revision: 97388

URL: http://llvm.org/viewvc/llvm-project?rev=97388&view=rev
Log:
Port commit 95321 (stoklund) from llvm-gcc:
Increase inliner thresholds by 25.

This makes the inliner about as agressive as it was before my changes to the
inliner cost calculations. These levels give the same performance and slightly
smaller code than before.

Modified:
    dragonegg/trunk/llvm-backend.cpp

Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=97388&r1=97387&r2=97388&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Sun Feb 28 07:07:24 2010
@@ -266,11 +266,11 @@
 static unsigned GuessAtInliningThreshold() {
   if (optimize_size)
     // Reduce inline limit.
-    return 50;
+    return 75;
   
   if (optimize >= 3)
-    return 250;
-  return 200;
+    return 275;
+  return 225;
 }
 
 // SizeOfGlobalMatchesDecl - Whether the size of the given global value is the





More information about the llvm-commits mailing list