public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Nathan Froyd <froydnj@mozilla.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] shrink storage for target_expmed cost fields
Date: Mon, 30 Jul 2012 22:42:00 -0000	[thread overview]
Message-ID: <50170C5A.2080207@redhat.com> (raw)
In-Reply-To: <1343682326-6963-1-git-send-email-froydnj@mozilla.com>

On 07/30/2012 02:05 PM, Nathan Froyd wrote:
> 	* expmed.h (NUM_MODE_VECTOR_INT): Define.
> 	(struct expmed_op_cheap, struct expmed_op_costs): New structures.
> 	(struct target_expmed): Convert x_mul_highpart_cost and
> 	x_mul_widen_cost fields to be indexed by integer modes.
> 	Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
> 	of type struct expmed_op_cheap.  Convert other cost fields to be
> 	of type struct_expmed_op_costs.
> 	(mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
> 	indexing of respective fields.
> 	(expmed_op_cheap_ptr): New function.
> 	(sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
> 	(expmed_op_cost_ptr): New function.
> 	(add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
> 	shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
> 	sdiv_cost_ptr, udiv_cost_ptr): Call it.

Ok.


r~

      reply	other threads:[~2012-07-30 22:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 21:47 Nathan Froyd
2012-07-30 22:42 ` Richard Henderson [this message]

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=50170C5A.2080207@redhat.com \
    --to=rth@redhat.com \
    --cc=froydnj@mozilla.com \
    --cc=gcc-patches@gcc.gnu.org \
    /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).