public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marcus Shawcroft <marcus.shawcroft@gmail.com>
To: James Greenhalgh <james.greenhalgh@arm.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch AArch64 3/4] De-const-ify struct tune_params
Date: Fri, 26 Jun 2015 12:44:00 -0000	[thread overview]
Message-ID: <CAFqB+PxE+uKrP740wRiL2AzXY4oOmg64L7Mnyror8ZdGZ-V0pg@mail.gmail.com> (raw)
In-Reply-To: <1435049360-10990-4-git-send-email-james.greenhalgh@arm.com>

On 23 June 2015 at 09:49, James Greenhalgh <james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> If we want to overwrite parts of this structure, we're going to need it
> to be more malleable than it is presently.
>
> Run through and remove const from each of the members, create a non-const
> tuning structure we can modify, and set aarch64_tune_params to always
> point to this new structure. Change the -mtune parsing code to take a
> copy of the tuning structure in use rather than just taking the
> reference from within the processor struct. Change all the current
> users of aarch64_tune_params which no longer need to dereference a
> pointer.
>
> Checked on aarch64-none-linux-gnueabi with no issues.
>
> OK?
>
> Thanks,
> James
>
> ---
> 2015-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * config/aarch64/aarch64-protos.h (tune_params): Remove
>         const from members.
>         (aarch64_tune_params): Remove const, change to no longer be
>         a pointer.
>         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
>         change to no longer be a pointer, initialize to generic_tunings.
>         (aarch64_min_divisions_for_recip_mul): Change dereference of
>         aarch64_tune_params to member access.
>         (aarch64_reassociation_width): Likewise.
>         (aarch64_rtx_mult_cost): Likewise.
>         (aarch64_address_cost): Likewise.
>         (aarch64_branch_cost): Likewise.
>         (aarch64_rtx_costs): Likewise.
>         (aarch64_register_move_cost): Likewise.
>         (aarch64_memory_move_cost): Likewise.
>         (aarch64_sched_issue_rate): Likewise.
>         (aarch64_builtin_vectorization_cost): Likewise.
>         (aarch64_override_options): Take a copy of the selected tuning
>         struct in to aarch64_tune_params, rather than just setting
>         a pointer, change dereferences of aarch64_tune_params to member
>         accesses.
>         (aarch64_override_options_after_change): Change dereferences of
>         aarch64_tune_params to member access.
>         (aarch64_macro_fusion_p): Likewise.
>         (aarch_macro_fusion_pair_p): Likewise.
>         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
>

OK
/Marcus

  reply	other threads:[~2015-06-26 12:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23  8:49 [Patch AArch64 0/4] Add "-moverride" option for overriding tuning parameters James Greenhalgh
2015-06-23  8:49 ` [Patch AArch64 2/4] Control the FMA steering pass in tuning structures rather than as core property James Greenhalgh
2015-06-26 12:41   ` Marcus Shawcroft
2015-06-23  8:50 ` [Patch AArch64 1/4] Define candidates for instruction fusion in a .def file James Greenhalgh
2015-06-26 12:41   ` Marcus Shawcroft
2015-06-23  8:50 ` [Patch AArch64 3/4] De-const-ify struct tune_params James Greenhalgh
2015-06-26 12:44   ` Marcus Shawcroft [this message]
2015-06-23  8:52 ` [Patch AArch64 4/4] Add -moverride tuning command, and wire it up for control of fusion and fma-steering James Greenhalgh
2015-06-26 12:52   ` Marcus Shawcroft

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=CAFqB+PxE+uKrP740wRiL2AzXY4oOmg64L7Mnyror8ZdGZ-V0pg@mail.gmail.com \
    --to=marcus.shawcroft@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=james.greenhalgh@arm.com \
    /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).