https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65972

--- Comment #5 from Dehao Chen <dehao at google dot com> ---
Could you try if the following patch fixes the bug?

Thanks,
Dehao

Index: gcc/auto-profile.c
===================================================================
--- gcc/auto-profile.c  (revision 223204)
+++ gcc/auto-profile.c  (working copy)
@@ -1470,6 +1470,7 @@ afdo_vpt_for_early_inline (stmt_set *promoted_stmt
   if (has_vpt)
     {
       optimize_inline_calls (current_function_decl);
+      update_ssa (TODO_update_ssa);
       return true;
     }

Reply via email to