public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103345] missed optimization: add/xor individual bytes to form a word Date: Mon, 22 Nov 2021 18:17:31 +0000 [thread overview] Message-ID: <bug-103345-4-LX3U24JZo2@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103345-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103345 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Roger Sayle <sayle@gcc.gnu.org>: https://gcc.gnu.org/g:a944b5dec3adb28ed199234d2116145ca9010d6a commit r12-5453-ga944b5dec3adb28ed199234d2116145ca9010d6a Author: Roger Sayle <roger@nextmovesoftware.com> Date: Mon Nov 22 18:15:36 2021 +0000 tree-optimization/103345: Improved load merging. This patch implements PR tree-optimization/103345 to merge adjacent loads when combined with addition or bitwise xor. The current code in gimple-ssa-store-merging.c's find_bswap_or_nop alreay handles ior, so that all that's required is to treat PLUS_EXPR and BIT_XOR_EXPR in the same way at BIT_IOR_EXPR. Many thanks to Andrew Pinski for pointing out that this also resolves PR target/98953. 2021-11-22 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog PR tree-optimization/98953 PR tree-optimization/103345 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR. (pass_optimize_bswap::execute): Likewise. gcc/testsuite/ChangeLog PR tree-optimization/98953 PR tree-optimization/103345 * gcc.dg/tree-ssa/pr98953.c: New test case. * gcc.dg/tree-ssa/pr103345.c: New test case.
next prev parent reply other threads:[~2021-11-22 18:17 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-21 11:17 [Bug other/103345] New: " gcc at rjk dot terraraq.uk 2021-11-21 12:44 ` [Bug tree-optimization/103345] " roger at nextmovesoftware dot com 2021-11-22 8:41 ` roger at nextmovesoftware dot com 2021-11-22 18:17 ` cvs-commit at gcc dot gnu.org [this message] 2021-11-24 8:55 ` cvs-commit at gcc dot gnu.org 2021-11-25 19:47 ` roger at nextmovesoftware dot com 2021-11-30 10:37 ` cvs-commit 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-103345-4-LX3U24JZo2@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).