ipa-utils.c (estimate_function_body_sizes): Do not free node params when called late...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 12 Jan 2015 07:08:27 +0000 (08:08 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 12 Jan 2015 07:08:27 +0000 (07:08 +0000)
* ipa-utils.c (estimate_function_body_sizes): Do not
free node params when called late with early=true.

From-SVN: r219444

gcc/ChangeLog
gcc/ipa-utils.c

index 7e6d41b47bf7b389adbb3922f7809c443c8eb086..7e53d984861655f79ea3ab086def64f909b42d4f 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-utils.c (estimate_function_body_sizes): Do not
+       free node params when called late with early=true.
+
 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * doc/md.texi (Instruction Patterns): Rewrite text for
index 5c5db220ab1b465d8a5a0a22204998ba18852e4e..bc538c58c25c48248b83483a92c6b7a7ebaae351 100644 (file)
@@ -474,8 +474,8 @@ ipa_merge_profiles (struct cgraph_node *dst,
       gcc_assert (!*slot);
       *slot = state;
     }
-  src->get_body ();
-  dst->get_body ();
+  src->get_untransformed_body ();
+  dst->get_untransformed_body ();
   srccfun = DECL_STRUCT_FUNCTION (src->decl);
   dstcfun = DECL_STRUCT_FUNCTION (dst->decl);
   if (n_basic_blocks_for_fn (srccfun)