From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42B563858D35; Sat, 3 Jun 2023 22:59:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42B563858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685833176; bh=KMqyyha0I6QXqHHZct9nTQ6RAoupjIM/hzbnnIeNw84=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mVWRdcMygCP1dqXnDiXTWHEeXIA6+7wiTIRA3dJA9+31j6PLQfIw5qX8vLAjG4NOk jPdJQQiXPinhyE2RdLnTsssuGAj51afC9Vh8/ppq1EFfuYLC4H5Vcos8r7VWjhmFOK cMYZ5Mai4XcMMg9WvE2Metq/vgAL/+sePu8T1aHI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/58517] ifcvt (after combine) puts ccreg clobbering insn between ccset insn and ccreg use Date: Sat, 03 Jun 2023 22:59:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 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: attachments.created 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=3D58517 --- Comment #18 from Andrew Pinski --- Created attachment 55250 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55250&action=3Dedit This patch also fixes the issue by looking back Here is a patch which does the lookback if the reg is a hard register and i= t is considered a small reg class.=