This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[GOOGLE] call compute_inline_parameters before early_inliner
- From: Dehao Chen <dehao at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, David Li <davidxl at google dot com>
- Date: Wed, 26 Feb 2014 15:23:06 -0800
- Subject: [GOOGLE] call compute_inline_parameters before early_inliner
- Authentication-results: sourceware.org; auth=none
This patch fixes the bug of not calling compute_inline_parameters
before early_inliner, which would lead to ICE.
Testing on going, OK for google-4_8 if test passes?
Thanks,
Dehao
Index: gcc/auto-profile.c
===================================================================
--- gcc/auto-profile.c (revision 207970)
+++ gcc/auto-profile.c (working copy)
@@ -1533,6 +1533,8 @@ auto_profile (void)
early_inliner ();
}
+ compute_inline_parameters (cgraph_get_node (current_function_decl),
+ false);
early_inliner ();
autofdo::afdo_annotate_cfg (promoted_stmts);
compute_function_frequency ();