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 0ec2e34..1741b7e 100644 (file)
@@ -1,5 +1,14 @@
 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
        version-loops-for-strides, loop-interchange, unrol-and-jam
        and tree-loop-distribution.
index 73da38c..8e34400 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;