From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C910B383B42E; Fri, 30 Apr 2021 22:19:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C910B383B42E From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100363] gcc generating wider load/store than warranted at -O3 Date: Fri, 30 Apr 2021 22:19:44 +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: 10.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: component keywords 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, 30 Apr 2021 22:19:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100363 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization Keywords| |wrong-code --- Comment #5 from Andrew Pinski --- On the trunk, on aarch64: There should be an aliasing check=20 sfrom_289 =3D from_176 + 18446744073709551615; _871 =3D _843 + 18446744073709551615; _872 =3D _871 > 6; _873 =3D prephitmp_803 + 2; _874 =3D from_176 + 3; _875 =3D _873 - _874; _876 =3D (sizetype) _875; _877 =3D _876 > 12; _878 =3D _872 & _877; if (_878 !=3D 0) goto ; [80.00%] else goto ; [20.00%] _873 is the sout In GCC 10 branch we get something similar: sfrom_289 =3D from_176 + 18446744073709551615; _859 =3D _823 + 18446744073709551615; _860 =3D _859 > 8; _861 =3D prephitmp_783 + 2; _862 =3D from_176 + 3; _863 =3D _861 - _862; _864 =3D (sizetype) _863; _865 =3D _864 > 12; _866 =3D _860 & _865; if (_866 !=3D 0) goto ; [80.00%] else goto ; [20.00%] But I Notice 8 vs 6 here.=