projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a95da0
)
* ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
author
Jan Hubicka
<hubicka@ucw.cz>
Sat, 5 Jan 2019 17:47:34 +0000
(18:47 +0100)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Sat, 5 Jan 2019 17:47:34 +0000
(17:47 +0000)
From-SVN: r267600
gcc/ChangeLog
patch
|
blob
|
history
gcc/ipa-fnsummary.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 91c55fae6adcc29aba79e4b03360f18aa1f5f0ff..f8fd7458bef6329071c15feb0ab1342badaa0ae2 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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
diff --git
a/gcc/ipa-fnsummary.c
b/gcc/ipa-fnsummary.c
index 1189648fed85dab6f80e44073a7bb330e77041b2..affb210e8ef046cb24d721693714f33430968f95 100644
(file)
--- a/
gcc/ipa-fnsummary.c
+++ b/
gcc/ipa-fnsummary.c
@@
-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);
}