From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A43D385802A; Thu, 10 Jun 2021 09:28:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A43D385802A From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101009] [12 Regression] wrong code with "-O3 -fno-tree-sra" Date: Thu, 10 Jun 2021 09:28:09 +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: 12.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone short_desc bug_status cf_reconfirmed_on everconfirmed 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: Thu, 10 Jun 2021 09:28:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101009 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection, wrong-code Target Milestone|--- |12.0 Summary|wrong code with "-O3 |[12 Regression] wrong code |-fno-tree-sra" |with "-O3 -fno-tree-sra" Status|UNCONFIRMED |NEW Last reconfirmed| |2021-06-10 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. loop distribution distributes [local count: 955630225]: # d.2_15 =3D PHI <_2(6), d.2_14(5)> g[1].b =3D 2; g[1].c =3D 1; f.0_1 =3D f; *f.0_1 =3D g[1]; g =3D{v} {CLOBBER}; _2 =3D d.2_15 + -1; d =3D _2; if (_2 !=3D 0) to [local count: 955630225]: # d.2_17 =3D PHI <_22(11), d.2_14(5)> g[1].b =3D 2; f.0_19 =3D f; *f.0_19 =3D g[1]; _22 =3D d.2_17 + -1; d =3D _22; if (_22 !=3D 0) and [local count: 955630225]: # d.2_15 =3D PHI <_2(6), d.2_14(8)> g[1].c =3D 1; _2 =3D d.2_15 + -1; if (_2 !=3D 0) doesn't seem to happen with the GCC 11 copy I have around.=