re PR tree-optimization/86020 (Performance regression in Eigen geometry.cpp test...
authorJan Hubicka <hubicka@ucw.cz>
Sun, 6 Jan 2019 17:16:00 +0000 (18:16 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 6 Jan 2019 17:16:00 +0000 (17:16 +0000)
PR tree-opt/86020
Revert:
2017-05-22  Jan Hubicka  <hubicka@ucw.cz>

        * ipa-inline.c (edge_badness): Use inlined_time instead of
        inline_summaries->get.

From-SVN: r267612

gcc/ChangeLog
gcc/ipa-inline.c

index 0ec2e3463ba4ee03b87548699ea00c19924ba4c3..1741b7ef6cec42a5b7775a20c63e65221c036e52 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR tree-opt/86020
+       Revert:
+       2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
+       
+        * ipa-inline.c (edge_badness): Use inlined_time instead of
+        inline_summaries->get.
+
 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
 
        * opts.c (enable_fdo_optimizations): Enable
index 73da38c78599aacedf4692266218c6e2a4da4d23..8e344001105407369900a23299cbb296a3832496 100644 (file)
@@ -1173,7 +1173,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
            overall_growth += 256 * 256 - 256;
          denominator *= overall_growth;
         }
-      denominator *= inlined_time;
+      denominator *= ipa_fn_summaries->get (caller)->self_size + growth;
 
       badness = - numerator / denominator;