From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9F473858D20; Wed, 15 Mar 2023 06:07:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9F473858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678860458; bh=QASMy4OdoYqf/yTsgbEX1enCgsmrVj9jR/0r5mrfn+Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AgvWCg1HFaroHFIYqq56fhbOhHKoDbzHI045Tz9JYthM1m52zuJkSYCdScKaI7MQs p6cF0oKgXYhSbfUMmjVI88VMV3Q2yBvdbDMVfPzr+z6DFupQowN8OeS22o0aXXMOQJ Y+IsVrbaYHEVcUu9R9qGir2LDa5XEI4N7ipVUyhg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109138] wrong code at -O1 and above on x86_64-linux-gnu Date: Wed, 15 Mar 2023 06:07:38 +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: wrong-code 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_reconfirmed_on everconfirmed bug_status 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109138 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Last reconfirmed| |2023-03-15 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- reassoc1 introduces the unconditional use of an unitialized variable. From: [local count: 1014686025]: if (d_5(D) !=3D 0) goto ; [5.50%] else goto ; [94.50%] [local count: 1073741824]: a.1_1 =3D a; if (a.1_1 =3D=3D 0) goto ; [94.50%] else goto ; [5.50%] To: a.1_1 =3D a; _12 =3D (unsigned int) d_5(D); _4 =3D _12 | a.1_1; _3 =3D _4 =3D=3D 0; if (_3 !=3D 0) goto ; [94.50%] else goto ; [5.50%]=