diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-inline.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17aa792..85dc9c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-11-19 Jan Hubicka <hubicka@ucw.cz> + PR ipa/60243 + * tree-inline.c (estimate_num_insns): Set to 1 at least. + +2017-11-19 Jan Hubicka <hubicka@ucw.cz> + PR target/82713 * i386.c (ix86_builtin_vectorization_cost): Be ready for insane types. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 6af2079..c0dc7b9 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: |