public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/111384] New: missed optimization: GCC adds extra any extend when storing subreg#0 multiple times
@ 2023-09-12  9:25 lis8215 at gmail dot com
  2023-09-12 12:38 ` [Bug rtl-optimization/111384] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lis8215 at gmail dot com @ 2023-09-12  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111384
           Summary: missed optimization: GCC adds extra any extend when
                    storing subreg#0 multiple times
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lis8215 at gmail dot com
  Target Milestone: ---

Simple example:

void store_hi_twice(uint32_t src, uint16_t *dst1, uint16_t *dst2)
{
    *dst1 = src;
    *dst2 = src;
}

shows that GCC can't opt out unnecessary zero extend of the src's low half
aimed to store two or more times. Many targets are affected, although x86-64
don't.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-01  6:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12  9:25 [Bug middle-end/111384] New: missed optimization: GCC adds extra any extend when storing subreg#0 multiple times lis8215 at gmail dot com
2023-09-12 12:38 ` [Bug rtl-optimization/111384] " rguenth at gcc dot gnu.org
2023-09-12 13:10 ` lis8215 at gmail dot com
2023-09-12 15:27 ` pinskia at gcc dot gnu.org
2023-09-12 15:35 ` pinskia at gcc dot gnu.org
2023-10-07 20:54 ` law at gcc dot gnu.org
2023-11-01  6:30 ` lis8215 at gmail dot com

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).