From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 662C6385841C; Wed, 28 Jun 2023 14:06:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 662C6385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687961203; bh=nvEeO3o/3Q4uQcHJ3JNti71ivr2UBqHzOFDWuNrSDkg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V+F7xpsF4WMK5g2TTA04wC12YdmeQZAKZjSl1EE5WhXtz9yvimcOrdBgGP5QTnAVF yl2gG66oyRbXBlEl8F4njQC+WiwykGhg1zsxg35iXA2DzM5xbB+gWdLZNlWcpstnTJ aoEGD0xOMlq38JXPaY3ohIteLQNRgVXDP7JRxdVE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110313] [14 Regression] GCN Fiji reload ICE in 'process_alt_operands' Date: Wed, 28 Jun 2023 14:06:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 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=3D110313 --- Comment #12 from CVS Commits --- The master branch has been updated by Philipp Tomsich : https://gcc.gnu.org/g:893883f2f8f56984209c6ed210ee992ff71a14b0 commit r14-2165-g893883f2f8f56984209c6ed210ee992ff71a14b0 Author: Manolis Tsamis Date: Tue Jun 20 16:23:52 2023 +0200 cprop_hardreg: fix ORIGINAL_REGNO/REG_ATTRS/REG_POINTER handling Fixes: 6a2e8dcbbd4bab3 Propagation for the stack pointer in regcprop was enabled in 6a2e8dcbbd4bab3, but set ORIGINAL_REGNO/REG_ATTRS/REG_POINTER for stack_pointer_rtx which caused regression (e.g., PR 110313, PR 110308). This fix adds special handling for stack_pointer_rtx in the places where maybe_mode_change is called. This also adds an check in maybe_mode_change to return the stack pointer only when the requested mode matches the mode of stack_pointer_rtx. PR debug/110308 gcc/ChangeLog: * regcprop.cc (maybe_mode_change): Check stack_pointer_rtx mode. (maybe_copy_reg_attrs): New function. (find_oldest_value_reg): Use maybe_copy_reg_attrs. (copyprop_hardreg_forward_1): Ditto. gcc/testsuite/ChangeLog: * g++.dg/torture/pr110308.C: New test. Signed-off-by: Manolis Tsamis Signed-off-by: Philipp Tomsich =