This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[GOOGLE] Updates SSA after VPT transofrmations in AFDO pass
- From: Dehao Chen <dehao at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: David Li <davidxl at google dot com>, Luis Lozano <llozano at google dot com>
- Date: Thu, 3 Apr 2014 10:56:57 -0700
- Subject: [GOOGLE] Updates SSA after VPT transofrmations in AFDO pass
- Authentication-results: sourceware.org; auth=none
This patch updates SSA after VPT transformation. This is needed
because compute_inline_parameters will ICE without updated SSA.
Testing on-going.
OK for google-4_8?
Thanks,
Dehao
Index: gcc/auto-profile.c
===================================================================
--- gcc/auto-profile.c (revision 209059)
+++ gcc/auto-profile.c (working copy)
@@ -1448,6 +1448,7 @@ afdo_vpt_for_early_inline (stmt_set *promoted_stmt
free_dominance_info (CDI_POST_DOMINATORS);
calculate_dominance_info (CDI_POST_DOMINATORS);
calculate_dominance_info (CDI_DOMINATORS);
+ update_ssa (TODO_update_ssa);
rebuild_cgraph_edges ();
return true;
}