public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/104387] New: aarch64: Redundant SXTH for “bag of bits” moves Date: Fri, 04 Feb 2022 18:14:05 +0000 [thread overview] Message-ID: <bug-104387-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104387 Bug ID: 104387 Summary: aarch64: Redundant SXTH for “bag of bits” moves Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rsandifo at gcc dot gnu.org Target Milestone: --- Target: aarch64*-*-* This PR is about another case in which we generate a redundant SXTH. Specifically: void f(short *x, short y) { x[0] = y; x[1] = y; } generates: sxth w1, w1 strh w1, [x0] strh w1, [x0, 2] even though the RTL makes it clear that the upper 16 bits of the promoted “y” are unused. This is related to PR64537, but I think it's worth keeping as a separate PR since the fix isn't necessarily the same.
next reply other threads:[~2022-02-04 18:14 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-04 18:14 rsandifo at gcc dot gnu.org [this message] 2022-02-04 21:25 ` [Bug rtl-optimization/104387] " pinskia at gcc dot gnu.org 2023-10-31 22:07 ` pinskia at gcc dot gnu.org 2023-10-31 22:09 ` pinskia at gcc dot gnu.org 2023-11-01 6:30 ` lis8215 at gmail dot com 2023-11-01 13:56 ` law at gcc dot gnu.org
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-104387-4@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: linkBe 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).