aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorLuo Xiong Hu <luoxhu@linux.ibm.com>2020-01-08 00:54:39 +0000
committerXiong Hu Luo <luoxhu@gcc.gnu.org>2020-01-08 00:54:39 +0000
commit709d7838e753bbb6f16e2ed88a118ed81c367040 (patch)
tree9abdc9fba14937d9278a45ee0fcbb317af523224 /gcc/ipa-inline.c
parentfc6dbd584b4aa5c93ddaf52a62d4293a5e497a90 (diff)
downloadgcc-709d7838e753bbb6f16e2ed88a118ed81c367040.zip
gcc-709d7838e753bbb6f16e2ed88a118ed81c367040.tar.gz
gcc-709d7838e753bbb6f16e2ed88a118ed81c367040.tar.bz2
Partially revert ipa-inline caller_growth_limits
We need to revert one line of code change from r279942 due to performance degression. gcc/ChangeLog: 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com> PR middle-end/93189 * ipa-inline.c (caller_growth_limits): Restore the AND. From-SVN: r279986
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c4
1 files changed, 2 insertions, 2 deletions
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;