On Tue, Apr 18, 2017 at 12:40 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > Simple refactor counting invariant (both variables and expressions) and > induction variables separately. > Is it OK?
Ok. Richard. > Thanks, > bin > 2017-04-11 Bin Cheng <bin.ch...@arm.com> > > * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs. > (ivopts_global_cost_for_size): Rename parameter and update uses. > (iv_ca_recount_cost): Update uses. > (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and > candidates seperately in n_invs and n_cands. > (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.