tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
authorBin Cheng <bin.cheng@arm.com>
Thu, 2 Jul 2015 04:32:05 +0000 (04:32 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 2 Jul 2015 04:32:05 +0000 (04:32 +0000)
commit6f929985791a50401c5e53b90d6fffc54caab43a
tree041c998c5638f4f4169a7e50bcb93f120e5fbde7
parent305ebd10fd6da29c2e064f03bae7098549eeb453
tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.

* tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
(tree_ssa_iv_optimize_init): Initialize iv_obstack.
(alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
(set_iv, find_interesting_uses_address, add_candidate_1): New
argument to alloc_iv.
(find_interesting_uses_op, find_interesting_uses_cond): Don't
duplicate struct iv.
(free_loop_data): Don't free struct iv explicitly.
(tree_ssa_iv_optimize_finalize): Free iv_obstack.

From-SVN: r225293
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c