]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-ssanames.c (release_dead_ssa_names): Remove invalidated
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2007 06:48:23 +0000 (06:48 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2007 06:48:23 +0000 (06:48 +0000)
cgraph edges too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120823 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssanames.c

index e0fcfbfdd2b6bea69cae2cd92da3698c3fb564eb..7c3b62844ced4c87d6fbfa55649514c07f5b8fa5 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-16  Jan Hubicka  <jh@suse.cz>
+
+       * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
+       cgraph edges too.
+
 2007-01-15  Eric Christopher  <echristo@apple.com>
 
        * ifcvt.c: Include vec.h, vecprim.h.
index 9cbe3523f2375e51add8f594f7e391f73c82da0e..d9ab940fa90a7541fe10d917d72110c485745ea0 100644 (file)
@@ -329,6 +329,11 @@ release_dead_ssa_names (void)
       n++;
     }
   FREE_SSANAMES (cfun) = NULL;
+
+  /* Cgraph edges has been invalidated and point to dead statement.  We need to
+     remove them now and will rebuild it before next IPA pass.  */
+  cgraph_node_remove_callees (cgraph_node (current_function_decl));
+
   if (dump_file)
     fprintf (dump_file, "Released %i names, %.2f%%\n", n, n * 100.0 / num_ssa_names);
   return 0;