This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] tree-phinodes.c: Speed up PHI node allocation/resizing.
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 29 Oct 2004 08:06:29 -0400
- Subject: Re: [patch] tree-phinodes.c: Speed up PHI node allocation/resizing.
- Organization: Red Hat Canada
- References: <20041028.215251.02305661.kazu@cs.umass.edu>
On Thu, 2004-10-28 at 21:52, Kazu Hirata wrote:
> - memset (phi, 0, size);
> + memset (phi, 0, sizeof (struct tree_phi_node) - sizeof (struct phi_arg_d));
> TREE_SET_CODE (phi, PHI_NODE);
>
Add comment clarifying why it's safe not to clear the whole thing.
Otherwise, OK.
Diego.