public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/108322] Using __restrict parameter with -ftree-vectorize (default with -O2) results in massive code bloat
Date: Tue, 10 Jan 2023 09:09:30 +0000	[thread overview]
Message-ID: <bug-108322-4-TuQAh73Zm0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108322-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 10 Jan 2023, amonakov at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108322
> 
> --- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> (In reply to Richard Biener from comment #4)
> > 
> > For the case at hand loading two vectors from the destination and then
> > punpck{h,l}bw and storing them again might be the most efficient thing
> > to do here.
> 
> I think such read-modify-write on the destination introduces a data race for
> bytes that are not accessed in the original program, so that would be okay only
> under -fallow-store-data-races?

Yes, obviously.

      parent reply	other threads:[~2023-01-10  9:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 23:27 [Bug tree-optimization/108322] New: Using __register " gerbilsoft at gerbilsoft dot com
2023-01-06 23:28 ` [Bug tree-optimization/108322] " gerbilsoft at gerbilsoft dot com
2023-01-06 23:35 ` [Bug target/108322] Using __restrict " pinskia at gcc dot gnu.org
2023-01-07  7:30 ` amonakov at gcc dot gnu.org
2023-01-10  7:58 ` rguenth at gcc dot gnu.org
2023-01-10  8:02 ` amonakov at gcc dot gnu.org
2023-01-10  9:09 ` rguenther at suse dot de [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=bug-108322-4-TuQAh73Zm0@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).