From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 961763858D20; Sat, 18 Nov 2023 21:28:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 961763858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700342883; bh=KK3MiLtyAzOM881rQiN2GU3MCpRMUCP8XU4qmYJ8gFs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rtcycloWXkEoaA7lgomzE0Wa61KEHD6AQovkQw59YF2iJicx+/2CVj0OlKBI+TG86 KDL8AjKKw8DtvTlMinVlwdcmRnYZsHx4tIwOvGqpG8qY5Xq25FLHOlSy4HeLPubkpx 00b55MgFIosUSewSYBr4Pw/4RbJP1XlbdcAFc8Fc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112572] [14 regression] LLVM miscompiled since r14-5355-g3cd3a09b3f91a1 Date: Sat, 18 Nov 2023 21:28:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on 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=3D112572 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-11-18 Status|UNCONFIRMED |NEW --- Comment #18 from Andrew Pinski --- This fixes the issue for me: ``` diff --git a/gcc/compare-elim.cc b/gcc/compare-elim.cc index c59dc0cf5a5..50424bdfa09 100644 --- a/gcc/compare-elim.cc +++ b/gcc/compare-elim.cc @@ -908,6 +908,7 @@ static unsigned int execute_compare_elim_after_reload (void) { df_set_flags (DF_LR_RUN_DCE); + df_note_add_problem (); df_analyze (); gcc_checking_assert (!all_compares.exists ()); ``` compare-elim.cc depends on up to date REG_UNUSED and between before vzeroup= per and cmpelim the note gets out of date.=