public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/94687] PPC vector fails to optimize shift (used bits)
Date: Thu, 30 Apr 2020 17:16:26 +0000	[thread overview]
Message-ID: <bug-94687-4-6PQFXuwe2h@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94687-4@http.gcc.gnu.org/bugzilla/>

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-04-30
             Status|UNCONFIRMED                 |NEW
                 CC|                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Confirmed.

At combine time we start with

insn_cost 4 for    25: r130:V1TI=%2:V1TI
      REG_DEAD %2:V1TI
insn_cost 4 for    20: r129:V1TI=r130:V1TI
      REG_DEAD r130:V1TI
insn_cost 4 for    21: r127:DI=r129:V1TI#0
insn_cost 4 for    22: r128:DI=r129:V1TI#8
      REG_DEAD r129:V1TI
insn_cost 4 for    24: r123:TI=0
insn_cost 4 for     7: r123:TI#8=r127:DI
      REG_DEAD r127:DI
insn_cost 4 for     8: r123:TI#0=r128:DI
      REG_DEAD r128:DI
insn_cost 4 for     9: r122:V1TI=r123:TI#0
      REG_DEAD r123:TI
insn_cost 4 for    14: %2:V1TI=r122:V1TI
      REG_DEAD r122:V1TI
insn_cost 0 for    15: use %2:V1TI

and those subregs at the lhs (insns 7 and 8) cannot combine with anything.

2-to-2 combine won't handle 20+21 (and then, 20+22) because 20 is a register
move already.  It would probably combine fine if that subreg lhs problem was
fixed though.

  reply	other threads:[~2020-04-30 17:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 10:32 [Bug target/94687] New: " shawn at git dot icu
2020-04-30 17:16 ` segher at gcc dot gnu.org [this message]
2020-06-16 11:40 ` [Bug target/94687] " shawn at git dot icu

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=bug-94687-4-6PQFXuwe2h@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).