From: Jan Hubicka Date: Sun, 19 Nov 2017 18:55:30 +0000 (+0100) Subject: re PR ipa/60243 (IPA is slow on large cgraph tree) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fa23756e37ab00d3dde632e3530851253b2e5ca;p=gcc.git re PR ipa/60243 (IPA is slow on large cgraph tree) PR ipa/60243 * tree-inline.c (estimate_num_insns): Set to 1 at least. From-SVN: r254934 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17aa792a75f..85dc9c52463 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-19 Jan Hubicka + + PR ipa/60243 + * tree-inline.c (estimate_num_insns): Set to 1 at least. + 2017-11-19 Jan Hubicka PR target/82713 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 6af2079b837..c0dc7b9679f 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4100,7 +4100,7 @@ estimate_num_insns (gimple *stmt, eni_weights *weights) with very long asm statements. */ if (count > 1000) count = 1000; - return count; + return MAX (1, count); } case GIMPLE_RESX: