re PR ipa/64694 (FAIL: 23_containers/unordered_set/insert/hash_policy.cc)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 22 Jan 2015 19:44:00 +0000 (20:44 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 22 Jan 2015 19:44:00 +0000 (19:44 +0000)
PR ipa/64694
* ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
heap.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
From-SVN: r220011

gcc/ChangeLog
gcc/ipa-inline.c

index 3b8950194d7757dcfb69edc473b1e0c463c2d89a..ab9484ca370f0d396108c337121e8f27c29fd5cb 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 da1afc690472f7c19f3938a5f1e5d5908c095c61..aa93928b7028583f314265ed74f7a3f9c04e3037 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;