* ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 5 Jan 2019 17:47:34 +0000 (18:47 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 5 Jan 2019 17:47:34 +0000 (17:47 +0000)
From-SVN: r267600

gcc/ChangeLog
gcc/ipa-fnsummary.c

index 91c55fa..f8fd745 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
+
 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/82564
index 1189648..affb210 100644 (file)
@@ -2234,12 +2234,12 @@ analyze_function_body (struct cgraph_node *node, bool early)
                    {
                      predicate ip = bb_predicate & predicate::not_inlined ();
                      info->account_size_time (this_size * prob,
-                                              (this_time * prob) / 2, ip,
+                                              (final_time * prob) / 2, ip,
                                               p);
                    }
                  if (prob != 2)
                    info->account_size_time (this_size * (2 - prob),
-                                            (this_time * (2 - prob) / 2),
+                                            (final_time * (2 - prob) / 2),
                                             bb_predicate,
                                             p);
                }