tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
authorSteven Bosscher <steven@gcc.gnu.org>
Fri, 10 Aug 2012 09:27:31 +0000 (09:27 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Fri, 10 Aug 2012 09:27:31 +0000 (09:27 +0000)
commit580b2c2ef693302c29afd3f494269b238745ec6d
tree36d238929fded9774c6d13509cfb2761c743b8bc
parent83d5977e2f4747bbd33cc00a807e239d0b740895
tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.

* tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
* tree-into-ssa.c (get_ssa_name_ann): Likewise.
(mark_phi_for_rewrite): Likewise.
(compute_global_livein): Use VEC_reserve outside the innermost
loop and VEC_quick_push instead of VEC_safe_push in that loop.
(update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
of new_ssa_names and old_ssa_names.  Allocate phis_to_rewrite to
the correct initial size.

From-SVN: r190289
gcc/ChangeLog
gcc/tree-into-ssa.c
gcc/tree-ssa-pre.c