* 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 91c55fae6adcc29aba79e4b03360f18aa1f5f0ff..f8fd7458bef6329071c15feb0ab1342badaa0ae2 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 1189648fed85dab6f80e44073a7bb330e77041b2..affb210e8ef046cb24d721693714f33430968f95 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);
                }