From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 85F973858D35; Sat, 18 Nov 2023 23:06:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85F973858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700348816; bh=olew1EAW1b6BtWfZa9RbVnfPxthVK4fsWfU3FWSjznU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oSmoJl6ybEKJjlTE6JD17Colw/phVwD60MiYFFUNthtkoa794+mOsecVC0pU/hWwI 2SPVf+FIneC81mC31KmMTAoOXhZQWBSLQOM3YRV8xq85WIgUmt1rE4ScE54rGxkiXC 9+8zMhxGheJioSdcQPC21z3sZ/xA4kmR1wdtKaew= From: "rsandifo 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 23:06:55 +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: rsandifo 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: 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 --- Comment #23 from Richard Sandiford --- (In reply to Andrew Pinski from comment #18) > compare-elim.cc depends on up to date REG_UNUSED and between before > vzeroupper and cmpelim the note gets out of date. Thanks for tracking it down. I can't find this written down from a quick search, so perhaps I'm misremembering, but I thought that REG_UNUSED notes had to be kept up to date. Only REG_DEAD ones are allowed to rot. Like you say, single_set is used all over the place, and is expected to be safe. If so, I guess it's postreload that should be fixed.=