public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/111698] Narrow memory access of compare to byte width
Date: Thu, 05 Oct 2023 11:29:36 +0000	[thread overview]
Message-ID: <bug-111698-4-i9WY1Fe6oP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111698-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> I guess we could do this even on GIMPLE and in general to aligned sub-word
> accesses (where byte accesses are always aligned).
> 
> It might be also a good fit for RTL forwprop or that mem-offset pass in
> development.

I don't think this optimization should be universally enabled. According to
Agner Fog, older x86 cores suffer from store forwarding stall when smaller read
doesn't start at the same address. Intel Sandybridge and AMD Steamroller
families relaxed this constraint.

  parent reply	other threads:[~2023-10-05 11:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-04 20:52 [Bug target/111698] New: " ubizjak at gmail dot com
2023-10-05  7:51 ` [Bug target/111698] " rguenth at gcc dot gnu.org
2023-10-05 11:29 ` ubizjak at gmail dot com [this message]
2023-10-24 12:12 ` ubizjak at gmail dot com
2023-10-25 14:28 ` cvs-commit at gcc dot gnu.org
2023-10-25 14:30 ` ubizjak at gmail dot com

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-111698-4-i9WY1Fe6oP@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).