public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Bin.Cheng" <amker.cheng@gmail.com>
To: marxin <mliska@suse.cz>
Cc: gcc-patches List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 1/3] Encapsulate comp_cost within a class with methods.
Date: Mon, 16 May 2016 10:14:00 -0000	[thread overview]
Message-ID: <CAHFci299vr9c-2yfXtbHOedAZ6g8GtipP+TZ3MTcoppfFzfBhA@mail.gmail.com> (raw)
In-Reply-To: <cce4dcddbcb19eebbb9424e81bb130c5c2fd200c.1461931011.git.mliska@suse.cz>

On Mon, Apr 25, 2016 at 10:42 AM, marxin <mliska@suse.cz> wrote:
> gcc/ChangeLog:
>
> 2016-04-25  Martin Liska  <mliska@suse.cz>
>
>         * tree-ssa-loop-ivopts.c(comp_cost::operator=): New function.
>         (comp_cost::infinite_cost_p): Likewise.
>         (operator+): Likewise.
>         (comp_cost::operator+=): Likewise.
>         (comp_cost::operator-=): Likewise.
>         (comp_cost::operator/=): Likewise.
>         (comp_cost::operator*=): Likewise.
>         (operator-): Likewise.
>         (operator<): Likewise.
>         (operator==): Likewise.
>         (operator<=): Likewise.
>         (comp_cost::get_cost): Likewise.
>         (comp_cost::set_cost): Likewise.
>         (comp_cost::get_complexity): Likewise.
>         (comp_cost::set_complexity): Likewise.
>         (comp_cost::get_scratch): Likewise.
>         (comp_cost::set_scratch): Likewise.
>         (comp_cost::get_infinite): Likewise.
>         (comp_cost::get_no_cost): Likewise.
>         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id;
>         (tree_ssa_iv_optimize_init): Use the renamed property.
>         (new_cost): Remove.
>         (infinite_cost_p): Likewise.
>         (add_costs): Likewise.
>         (sub_costs): Likewise.
>         (compare_costs): Likewise.
>         (set_group_iv_cost): Use comp_cost::infinite_cost_p.
>         (get_address_cost): Use new comp_cost::comp_cost.
>         (get_shiftadd_cost): Likewise.
>         (force_expr_to_var_cost): Use new comp_cost::get_no_cost.
>         (split_address_cost): Likewise.
>         (ptr_difference_cost): Likewise.
>         (difference_cost): Likewise.
>         (get_expr_id): Use max_inv_expr_id.
>         (get_computation_cost_at): Use comp_cost::get_infinite.
>         (determine_group_iv_cost_generic): Use comp_cost::get_no_cost.
>         (determine_group_iv_cost_address): Likewise.
>         (determine_group_iv_cost_cond): Use comp_const::infinite_cost_p.
>         (autoinc_possible_for_pair): Likewise.
>         (determine_group_iv_costs): Use new methods of comp_cost.
>         (determine_iv_cost): Likewise.
>         (cheaper_cost_pair): Use comp_cost operators.
>         (iv_ca_recount_cost): Likewise.
>         (iv_ca_set_no_cp): Likewise.
>         (iv_ca_set_cp): Likewise.
>         (iv_ca_cost): Use comp_cost::get_infinite.
>         (iv_ca_new): Use comp_cost::get_no_cost.
>         (iv_ca_dump): Use new methods of comp_cost.
>         (iv_ca_narrow): Use operators of comp_cost.
>         (iv_ca_prune): Likewi.se
>         (iv_ca_replace): Likewise.
>         (try_add_cand_for): Likewise.
>         (try_improve_iv_set): Likewise.
>         (find_optimal_iv_set): Use new methods of comp_cost.
>         (free_loop_data): Use renamed max_inv_expr_id.
> ---
Hi Martin,
Could you please rebase this patch and the profiling one against
latest trunk?  The third patch was applied before these two now.

Thanks,
bin

  reply	other threads:[~2016-05-16 10:14 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 11:58 [PATCH 0/3] IVOPTS: support profiling marxin
2016-04-29 11:58 ` [PATCH 3/3] Enhance dumps of IVOPTS marxin
2016-05-06  9:19   ` Martin Liška
2016-05-09  9:47     ` Richard Biener
2016-05-10 13:16       ` Bin.Cheng
2016-05-11 14:18         ` Martin Liška
2016-05-12 12:14         ` Martin Liška
2016-05-12 13:51           ` Bin.Cheng
2016-05-12 16:42             ` Martin Liška
2016-05-13  9:43               ` Bin.Cheng
2016-05-13 10:44                 ` Martin Liška
2016-05-13 12:12                   ` H.J. Lu
2016-05-13 12:39                     ` Martin Liška
2016-05-13 12:44                       ` Kyrill Tkachov
2016-05-13 12:47                         ` Richard Biener
2016-05-13 12:51                           ` Martin Liška
2016-05-13 14:17                             ` H.J. Lu
2016-05-13 14:46                               ` H.J. Lu
2016-04-29 11:58 ` [PATCH 2/3] Add profiling support for IVOPTS marxin
2016-05-16 13:56   ` Martin Liška
2016-05-16 22:27     ` Bin.Cheng
2016-05-19 10:28       ` Martin Liška
2016-05-20 10:04         ` Bin.Cheng
2016-05-24 10:19         ` Bin.Cheng
2016-05-24 10:33           ` Bin.Cheng
2016-05-24 11:01           ` Bin.Cheng
2016-05-30 19:51           ` Martin Liška
2016-04-29 11:58 ` [PATCH 1/3] Encapsulate comp_cost within a class with methods marxin
2016-05-16 10:14   ` Bin.Cheng [this message]
2016-05-16 13:55     ` Martin Liška
2016-05-19 10:23       ` Martin Liška
2016-05-19 11:24         ` Bin.Cheng
2016-05-26 21:02           ` Martin Liška
2016-05-03  9:28 ` [PATCH 0/3] IVOPTS: support profiling Bin.Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHFci299vr9c-2yfXtbHOedAZ6g8GtipP+TZ3MTcoppfFzfBhA@mail.gmail.com \
    --to=amker.cheng@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).