From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D8EF39450D3; Tue, 13 Apr 2021 15:28:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D8EF39450D3 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100053] [9/10 Regression] tree-fre incorrectly delete a condition Date: Tue, 13 Apr 2021 15:28:37 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Tue, 13 Apr 2021 15:28:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100053 --- Comment #9 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #3) > It would be nice if the reduced testcase could be sanitized to throw less > diagnostics with -Wall, likewise if it were a runtime testcase. >=20 > Reduced: >=20 > int __attribute__((returns_twice,noipa)) x() { return 0; } > void __attribute__((noipa)) ar() {} > void __attribute__((noipa)) as() { __builtin_abort (); } > int a1, a2, a3; > void __attribute__((noipa)) v(int init) > {=20 > if (!init) { > as(); > if (a1) > goto aq; > if (x ()) > if (a2) > as(); > } > if (!init) > a3 =3D 1; > ar(); > aq: > if (!init) > as(); > } >=20 > int main() > { > v(1); > return 0; > } Hi, thanks for the further reduced testing case. I am wondering whether you did the above further reducing manually?=