This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] tree-phinodes.c: Speed up PHI node allocation/resizing.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]