re PR ipa/60243 (IPA is slow on large cgraph tree)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 19 Nov 2017 18:55:30 +0000 (19:55 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 19 Nov 2017 18:55:30 +0000 (18:55 +0000)
PR ipa/60243
* tree-inline.c (estimate_num_insns): Set to 1 at least.

From-SVN: r254934

gcc/ChangeLog
gcc/tree-inline.c

index 17aa792a75f9bfaa2764a3b9a042660fda03cd23..85dc9c52463679bfcfe81b03ecf73bd96a5ee818 100644 (file)
@@ -1,3 +1,8 @@
+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
index 6af2079b8375bfc258144bb294cd79f809290ee3..c0dc7b9679f3fa630c2a81d71665a70962167edb 100644 (file)
@@ -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: