From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D2F43858D29; Fri, 3 Sep 2021 01:38:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D2F43858D29 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98908] [11 Regression] arithmetic involving struct members into operating on the entire struct fails at -O3 Date: Fri, 03 Sep 2021 01:38:03 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail cf_known_to_work 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: Fri, 03 Sep 2021 01:38:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98908 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |11.2.0 Known to work| |10.3.0, 12.0 --- Comment #11 from Andrew Pinski --- How this was fixed on the trunk was SLP is now able to do: _8 =3D {_1, _3}; vect__2.4_9 =3D _8 & { 254, 128 }; Where it only did the store SLP and not the & before. SLP does it because we know vect-lowering will change it to: _7 =3D VIEW_CONVERT_EXPR(_8); _6 =3D _7 & 33022; _11 =3D VIEW_CONVERT_EXPR(_6); Next time when you file a bug please add what options you are using.=