PR ipa/64694
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jan 2015 19:44:00 +0000 (19:44 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jan 2015 19:44:00 +0000 (19:44 +0000)
* ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
heap.

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

gcc/ChangeLog
gcc/ipa-inline.c

index 3b89501..ab9484c 100644 (file)
@@ -1,3 +1,10 @@
+2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
+           H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ipa/64694
+       * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
+       heap.
+
 2015-01-22  Wei Mi  <wmi@google.com>
 
        PR rtl-optimization/64557
index da1afc6..aa93928 100644 (file)
@@ -1794,7 +1794,7 @@ inline_small_functions (void)
 #endif
       if (current_badness != badness)
        {
-         if (edge_heap.min () && badness > edge_heap.min_key ())
+         if (edge_heap.min () && current_badness > edge_heap.min_key ())
            {
              edge->aux = edge_heap.insert (current_badness, edge);
              continue;