public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Hans-Peter Nilsson <hp@bitrange.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [RFC PATCH, i386]: Enable post-reload compare elimination pass
Date: Fri, 12 May 2017 10:33:00 -0000	[thread overview]
Message-ID: <20170512103118.GM1809@tucnak> (raw)
In-Reply-To: <alpine.BSF.2.02.1705120535180.47928@arjuna.pair.com>

On Fri, May 12, 2017 at 05:42:59AM -0400, Hans-Peter Nilsson wrote:
> (To-list pruned, my correction doesn't need attention.)
> 
> On Thu, 11 May 2017, Hans-Peter Nilsson wrote:
> > On Wed, 10 May 2017, Jakub Jelinek wrote:
> >
> > > On Wed, May 10, 2017 at 09:57:56PM +0200, Uros Bizjak wrote:
> > > > BTW: This patch now catches 417 cases (instead of 200+) in linux
> > > > build, including e.g.:
> > > >
> > > > (parallel [
> > > >         (set (reg:CCZ 17 flags)
> > > >             (compare:CCZ (lshiftrt:SI (reg:SI 4 si [orig:93 _10 ] [93])
> > > >                     (const_int 1 [0x1]))
> > > >                 (const_int 0 [0])))
> > > >         (set (reg:DI 4 si)
> > > >             (zero_extend:DI (lshiftrt:SI (reg:SI 4 si [orig:93 _10 ] [93])
> > > >                     (const_int 1 [0x1]))))
> > > >     ])
> 
> > Anyway, people seem to drift towards the ccreg-last variant
> 
> JFTR, I miswrote that; I meant "towards the variant with
> ccreg-first" as in Uros' example kept above and as opposed to my
> example.

If I skim the current primary/secondary targets, then i386/x86_64, rs6000,
aarch64, arm, sparc, s390* all use the ccreg-first order, in mips I couldn't
find either of the orders.
Looking at other targets, in alpha, avr, bfin, c6x, cr16, cris, fr30, ft32,
h8300, ia64, iq2000, lm32, m32c, m32r, m68k, mcore, microblaze, mmix, moxie,
nds32, nios2, nvptx, pa, pdp11, riscv, rl78, sh, spu, stormy16, tilegx,
tilepro, v850, vax, xtensa I can't find any order,
arc, epiphany are ccreg-first,
frv is some weird mixture of ccreg-first (e.g. *combo_intop_compare2) and
ccreg-last (e.g. adddi3_lower),
mn10300, rx and visium are ccreg-last that we want to switch over now to
ccreg-first.
It was all from quickly skimming (mostly) the main config/<cpu>/<cpu>.md
looking for \(compare and/or \(reg.*CC and looking if there are patterns
that have the same arithmetics inside a compare or something similar vs.
the operation repeated on a set, so it is possible I've missed something.

But if the above is roughly true, then it is of course preferable to change
3 less used targets than 6 primary/secondary ones + 2 further ones.

	Jakub

  reply	other threads:[~2017-05-12 10:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09 16:16 Uros Bizjak
2017-05-10 14:31 ` Jakub Jelinek
2017-05-10 15:24   ` Uros Bizjak
2017-05-10 19:21     ` Uros Bizjak
2017-05-10 20:12       ` Uros Bizjak
2017-05-10 20:42         ` Jakub Jelinek
2017-05-11 17:17           ` Jeff Law
2017-05-11 22:09           ` Hans-Peter Nilsson
2017-05-12  6:13             ` Jeff Law
2017-05-17  3:40               ` Hans-Peter Nilsson
2017-05-17  6:52                 ` Uros Bizjak
2017-05-17 13:11                   ` Hans-Peter Nilsson
2017-06-23  4:47                   ` Jeff Law
2017-05-12  9:43             ` Hans-Peter Nilsson
2017-05-12 10:33               ` Jakub Jelinek [this message]
2017-05-11 18:37       ` Jeff Law
2017-05-11 18:45         ` Jakub Jelinek
2017-05-11 18:50         ` Uros Bizjak
2017-05-12  7:03           ` Jeff Law
2017-05-12 18:38       ` Jeff Law
2017-05-12 19:14         ` Uros Bizjak
2017-05-12 19:52           ` Uros Bizjak
2017-05-13 14:43           ` Markus Trippelsdorf
2017-05-13 19:58             ` Uros Bizjak
2017-05-17  9:33         ` Eric Botcazou

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=20170512103118.GM1809@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hp@bitrange.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).