From 0fa23756e37ab00d3dde632e3530851253b2e5ca Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 19 Nov 2017 19:55:30 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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: -- 2.30.2