diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 2020-01-07 21:27:27 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2020-01-07 21:27:27 +0000 |
commit | cdf77151aa5a75e8967984fe3f457d4a23261cb6 (patch) | |
tree | ced0ae66968608a858b0b41fca95f5b61f82ccc2 | |
parent | 6af8819be1e09fa2035248eba7fb320350ec14ab (diff) | |
download | gcc-cdf77151aa5a75e8967984fe3f457d4a23261cb6.zip gcc-cdf77151aa5a75e8967984fe3f457d4a23261cb6.tar.gz gcc-cdf77151aa5a75e8967984fe3f457d4a23261cb6.tar.bz2 |
Revert a patch from luoxhu@linux.ibm.com
From-SVN: r279971
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 8b400ff..eb42cae 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 callers. */ +/* Estimate the growth caused by inlining NODE into all callees. */ int estimate_growth (struct cgraph_node *node) 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; |