public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>,
	Vladimir Makarov <vmakarov@redhat.com>,
		Uros Bizjak <ubizjak@gmail.com>,
	Markus Trippelsdorf <markus@trippelsdorf.de>,
		"Gopalasubramanian, Ganesh" <Ganesh.Gopalasubramanian@amd.com>,
	richard.sandiford@arm.com
Subject: Re: [PATCH 2/5] Add preferred_for_{size,speed} attributes
Date: Mon, 03 Aug 2015 14:54:00 -0000	[thread overview]
Message-ID: <CAMe9rOqF=Jiuox4h8O4UXScJkJuFygy_pnCGuyS8oNEmevC_GA@mail.gmail.com> (raw)
In-Reply-To: <87zjcuah0u.fsf@e105548-lin.cambridge.arm.com>

On Fri, Oct 17, 2014 at 7:48 AM, Richard Sandiford
<richard.sandiford@arm.com> wrote:
> This is the main patch, to add new preferred_for_size and
> preferred_for_speed attributes that can be used to selectively disable
> alternatives when optimising for size or speed.  As explained in the
> docs, the new attributes are just optimisation hints and it is possible
> that "size-only" alternatives will sometimes end up in a block that's
> optimised for speed, or vice versa.
>
> The patch deals with code that directly accesses the enabled_attributes
> mask and that ought to take size/speed choices into account.  The next
> patch deals with indirect uses.  Note that I'm not making reload support
> these attributes for hopefully obvious reasons :-)
>
> Richard
>
>
> gcc/
>         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
>         attributes.
>         * genattr.c (main): Handle "preferred_for_size" and
>         "preferred_for_speed" in the same way as "enabled".
>         * recog.h (bool_attr): New enum.
>         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
>         (get_preferred_alternatives, check_bool_attrs): Declare.
>         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
>         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
>         New functions.
>         (get_enabled_alternatives): Use get_bool_attr_mask.
>         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
>         instead of recog_data.enabled_alternatives.
>         * ira.c (ira_setup_alts): Likewise.
>         * postreload.c (reload_cse_simplify_operands): Likewise.
>         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
>         * ira-lives.c (preferred_alternatives): New variable.
>         (process_bb_node_lives): Set it.
>         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
>         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
>         of recog_data.enabled_alternatives.
>         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
>         to preferred_alternatives.
>         * lra-constraints.c (process_alt_operands): Update accordingly.
>         * lra.c (lra_set_insn_recog_data): Likewise.
>         (lra_update_insn_recog_data): Assert check_bool_attrs.
>

This caused:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67029

-- 
H.J.

  parent reply	other threads:[~2015-08-03 14:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 14:47 [PATCH 0/5] " Richard Sandiford
2014-10-17 14:48 ` [PATCH 1/5] Add recog_constrain_insn Richard Sandiford
2014-10-21 14:56   ` Vladimir Makarov
2014-10-21 15:45   ` Jeff Law
2014-10-17 14:51 ` [PATCH 2/5] Add preferred_for_{size,speed} attributes Richard Sandiford
2014-10-21 14:57   ` Vladimir Makarov
2014-10-21 17:34   ` Jeff Law
2015-08-03 14:54   ` H.J. Lu [this message]
2014-10-17 14:52 ` [PATCH 3/5] Pass an alternative_mask to constrain_operands Richard Sandiford
2014-10-21 15:36   ` Vladimir Makarov
2014-10-21 17:46   ` Jeff Law
2014-10-17 14:55 ` [PATCH 4/5] Remove recog_data.enabled_alternatives Richard Sandiford
2014-10-21 14:57   ` Vladimir Makarov
2014-10-21 15:35   ` Jeff Law
2014-10-17 14:58 ` [PATCH 5/5] Use preferred_for_speed in i386.md Richard Sandiford
2014-10-17 16:59   ` Uros Bizjak
2014-10-21 15:08   ` Vladimir Makarov

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='CAMe9rOqF=Jiuox4h8O4UXScJkJuFygy_pnCGuyS8oNEmevC_GA@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=Ganesh.Gopalasubramanian@amd.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=markus@trippelsdorf.de \
    --cc=richard.sandiford@arm.com \
    --cc=ubizjak@gmail.com \
    --cc=vmakarov@redhat.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).