* tree-cfg.c (create_bb): Remove unnecessary memset.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 9 Nov 2004 19:33:58 +0000 (19:33 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 9 Nov 2004 19:33:58 +0000 (19:33 +0000)
From-SVN: r90360

gcc/ChangeLog
gcc/tree-cfg.c

index 117fbb7..8d26a00 100644 (file)
@@ -1,5 +1,9 @@
 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
 
+       * tree-cfg.c (create_bb): Remove unnecessary memset.
+
+2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
+
        * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
        (thread_block): Call flush_pending_stmt instead of
        copy_phis_to_block.
index 8da78c8..8c1a06f 100644 (file)
@@ -375,9 +375,10 @@ create_bb (void *h, void *e, basic_block after)
 
   gcc_assert (!e);
 
-  /* Create and initialize a new basic block.  */
+  /* Create and initialize a new basic block.  Since alloc_block uses
+     ggc_alloc_cleared to allocate a basic block, we do not have to
+     clear the newly allocated basic block here.  */
   bb = alloc_block ();
-  memset (bb, 0, sizeof (*bb));
 
   bb->index = last_basic_block;
   bb->flags = BB_NEW;