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 7e6d41b..7e53d98 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 5c5db22..bc538c5 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)