This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix a couple of VEC_reserve uses, speed up update_ssa a bit
- From: Richard Henderson <rth at redhat dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>
- Date: Thu, 09 Aug 2012 15:15:28 -0700
- Subject: Re: [patch] Fix a couple of VEC_reserve uses, speed up update_ssa a bit
- References: <CABu31nN_X3bkdzLzX5ZiQJ=7h-W2C3tqtRBF1S7f=vbwAaempg@mail.gmail.com>
On 08/09/2012 03:06 PM, Steven Bosscher wrote:
> + unsigned old_len = name_to_id ? VEC_length (unsigned, name_to_id) : 0;
> + VEC_reserve (unsigned, heap, name_to_id, num_ssa_names - old_len);
VEC_length already handles NULL input.
r~