[PATCH] ipa-inline: Adjust condition for caller_growth_limits
Jeff Law
law@redhat.com
Mon Jan 6 18:01:00 GMT 2020
On Mon, 2020-01-06 at 01:03 -0600, Xiong Hu Luo wrote:
> Inline should return failure either (newsize > param_large_function_insns)
> OR (newsize > limit). Sometimes newsize is larger than
> param_large_function_insns, but smaller than limit, inline doesn't return
> failure even if the new function is a large function.
> Therefore, param_large_function_insns and param_large_function_growth should be
> OR instead of AND, otherwise --param large-function-growth won't
> work correctly with --param large-function-insns.
>
> gcc/ChangeLog:
>
> 2020-01-06 Luo Xiong Hu <luoxhu@linux.ibm.com>
>
> ipa-inline-analysis.c (estimate_growth): Fix typo.
> ipa-inline.c (caller_growth_limits): Use OR instead of AND.
OK
jeff
More information about the Gcc-patches
mailing list