mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-29 07:10:24 +08:00
ipa-fnsummary.c (ipa_call_context::estimate_size_and_time, [...]): Micro optimize.
* ipa-fnsummary.c (ipa_call_context::estimate_size_and_time, ipa_merge_fn_summary_after_inlining): Micro optimize. From-SVN: r278222
This commit is contained in:
parent
79f1d85218
commit
fd4656a28a
@ -1,3 +1,8 @@
|
||||
2019-11-14 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
|
||||
ipa_merge_fn_summary_after_inlining): Micro optimize.
|
||||
|
||||
2019-11-14 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
|
||||
|
@ -3353,7 +3353,10 @@ ipa_call_context::estimate_size_and_time (int *ret_size,
|
||||
m_inline_param_summary);
|
||||
gcc_checking_assert (prob >= 0);
|
||||
gcc_checking_assert (prob <= REG_BR_PROB_BASE);
|
||||
time += e->time * prob / REG_BR_PROB_BASE;
|
||||
if (prob == REG_BR_PROB_BASE)
|
||||
time += e->time;
|
||||
else
|
||||
time += e->time * prob / REG_BR_PROB_BASE;
|
||||
}
|
||||
gcc_checking_assert (time >= 0);
|
||||
}
|
||||
@ -3707,7 +3710,8 @@ ipa_merge_fn_summary_after_inlining (struct cgraph_edge *edge)
|
||||
sreal add_time = ((sreal)e->time * freq);
|
||||
int prob = e->nonconst_predicate.probability (callee_info->conds,
|
||||
clause, es->param);
|
||||
add_time = add_time * prob / REG_BR_PROB_BASE;
|
||||
if (prob != REG_BR_PROB_BASE)
|
||||
add_time = add_time * prob / REG_BR_PROB_BASE;
|
||||
if (prob != REG_BR_PROB_BASE
|
||||
&& dump_file && (dump_flags & TDF_DETAILS))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user