From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51AC73858C27; Sun, 21 Nov 2021 12:44:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51AC73858C27 From: "roger at nextmovesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103345] missed optimization: add/xor individual bytes to form a word Date: Sun, 21 Nov 2021 12:44:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roger at nextmovesoftware dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status component everconfirmed cc cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2021 12:44:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103345 Roger Sayle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|other |tree-optimization Ever confirmed|0 |1 CC| |roger at nextmovesoftware = dot com Last reconfirmed| |2021-11-21 --- Comment #1 from Roger Sayle --- The ior form is percieved in tree-ssa's bswap pass implemented in gimple-ssa-store-merging.c. 32 bit load in target endianness found at: _16 =3D MEM [(con= st uint8_t *)ptr_15(D)]; 32-bit nop implementations found: 1 My guess it that it should be trivial to handle the PLUS_EXPR and BIT_XOR_E= XPR tree codes at the same time as BIT_IOR_EXPR.=