diff options
author | Luo Xiong Hu <luoxhu@linux.ibm.com> | 2020-01-07 02:38:16 +0000 |
---|---|---|
committer | Xiong Hu Luo <luoxhu@gcc.gnu.org> | 2020-01-07 02:38:16 +0000 |
commit | 6ac22177a085e0ba36c95e71cee8235cc8b12947 (patch) | |
tree | b46158ec9d7edc1584dfa7373b303cf10f42a00c /gcc/ipa-inline-analysis.c | |
parent | 1b02c8c34c9668d05fa42a9779c0824d9de4d03f (diff) | |
download | gcc-6ac22177a085e0ba36c95e71cee8235cc8b12947.zip gcc-6ac22177a085e0ba36c95e71cee8235cc8b12947.tar.gz gcc-6ac22177a085e0ba36c95e71cee8235cc8b12947.tar.bz2 |
ipa-inline: Adjust condition for caller_growth_limits
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-07 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.
From-SVN: r279942
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index eb42cae..8b400ff 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -462,7 +462,7 @@ offline_size (struct cgraph_node *node, ipa_size_summary *info) return 0; } -/* Estimate the growth caused by inlining NODE into all callees. */ +/* Estimate the growth caused by inlining NODE into all callers. */ int estimate_growth (struct cgraph_node *node) |