public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Ilya Enkovich <enkovich.gnu@gmail.com>
Cc: Uros Bizjak <ubizjak@gmail.com>,
	       "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	       "H.J. Lu" <hjl.tools@gmail.com>
Subject: Re: [RFC patch, i386]: Use STV pass to load/store any TImode constant using SSE insns
Date: Fri, 29 Apr 2016 07:41:00 -0000	[thread overview]
Message-ID: <20160429074122.GZ26501@tucnak.zalov.cz> (raw)
In-Reply-To: <CAMbmDYaO34pBEKkhGPjVaz7hZoCE3YBBmqU0aax8kRpf-a02ow@mail.gmail.com>

On Thu, Apr 28, 2016 at 01:45:36PM +0300, Ilya Enkovich wrote:
> > Where does the 2 come from?  Is it that the STV pass right now supports only
> > 2 * wordsize modes?  Also, I don't think we should treat equally constants
> > that fit into the 32-bit immediates and constants that don't, the latter,
> > when movabsq needs to be used, are more costly.
> 
> This variant is for DImode going to split into two SImode.  TImode chains
> have own cost model.

Ok.  Still, we should make sure the cost of movabsq is significantly higher
than cost of other immediates (not only because the other immediates can be
used directly in the instructions, while for movabsq you need to first use
that insn to initialize some reg and then use that reg in other insn, but
also because of the movabsq latency).

	Jakub

  reply	other threads:[~2016-04-29  7:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 19:59 Uros Bizjak
2016-04-27 20:35 ` H.J. Lu
2016-04-28 10:36 ` Ilya Enkovich
2016-04-28 10:41   ` Jakub Jelinek
2016-04-28 10:45     ` Ilya Enkovich
2016-04-29  7:41       ` Jakub Jelinek [this message]
2016-04-28 10:43   ` Uros Bizjak
2016-04-28 10:50     ` Ilya Enkovich
2016-04-29  9:49   ` Uros Bizjak
2016-04-29 11:27     ` Ilya Enkovich
2016-04-29 11:56       ` Uros Bizjak

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=20160429074122.GZ26501@tucnak.zalov.cz \
    --to=jakub@redhat.com \
    --cc=enkovich.gnu@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=ubizjak@gmail.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).