re PR ipa/65076 (16% tramp3d-v4.cpp compile time regression)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 30 Mar 2015 02:00:56 +0000 (04:00 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 30 Mar 2015 02:00:56 +0000 (02:00 +0000)
PR ipa/65076
* ipa-inline.c (edge_badness): Base denominator on callee's
grwoth squared.

From-SVN: r221769

gcc/ChangeLog
gcc/ipa-inline.c

index 9baf88b1471f949481915b5eda8e63afefd282b8..e3d2a3d2af6b88848be8e509a5d02de2d838f2d2 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/65076
+       * ipa-inline.c (edge_badness): Base denominator on callee's
+       grwoth squared.
+
 2015-03-27  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/65478
index 24b25a0e3189a32a989ed128bfc298be27819095..bc328468fab1e88329e7abe20f4adaef91964bb7 100644 (file)
@@ -1099,7 +1099,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
        numerator = numerator >> 11;
       denominator = growth;
       if (callee_info->growth > 0)
-       denominator *= callee_info->growth;
+       denominator *= callee_info->growth * callee_info->growth;
 
       badness = - numerator / denominator;