diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca3b4d4..44ae44c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com> + + * ipa-inline.c (caller_growth_limits): Restore the AND. + 2020-01-07 Andrew Stubbs <ams@codesourcery.com> * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 302badf..3b68fc4 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -184,8 +184,8 @@ caller_growth_limits (struct cgraph_edge *e) the function to shrink if it went over the limits by forced inlining. */ newsize = estimate_size_after_inlining (to, e); if (newsize >= ipa_size_summaries->get (what)->size - && (newsize > opt_for_fn (to->decl, param_large_function_insns) - || newsize > limit)) + && newsize > opt_for_fn (to->decl, param_large_function_insns) + && newsize > limit) { e->inline_failed = CIF_LARGE_FUNCTION_GROWTH_LIMIT; return false; |