]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR bootstrap/83015
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Nov 2017 11:24:55 +0000 (11:24 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Nov 2017 11:24:55 +0000 (11:24 +0000)
* ipa-inline.c (inline_small_functions): Set current badnes correctly
when skipping checking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255138 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c

index cb6c0510535f2a9603b421af7af2ba3724e623a7..92b355a73dfc340b3b423a36ad640b896fd3d956 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-24  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR bootstrap/83015
+       * ipa-inline.c (inline_small_functions): Set current badnes correctly
+       when skipping checking.
+
 2017-11-24  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/83128
index c535a9ab7d6bc9f451e4b43ac9971f0866ab7cb0..8f12aa16687656a70f6b45e70cd7f9b6a633e698 100644 (file)
@@ -1865,6 +1865,8 @@ inline_small_functions (void)
          gcc_assert (cached_badness == current_badness);
          gcc_assert (current_badness >= badness);
        }
+      else
+        current_badness = edge_badness (edge, false);
 #else
       current_badness = edge_badness (edge, false);
 #endif