From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67F7C3858CDA; Fri, 24 Mar 2023 23:33:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67F7C3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679700830; bh=fblp8SlX87wn7qwSTgo9Ugwq03W4rirXLQeybcjiBKE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S/cMgfwVQZMHpHYXjNnRg3bUU6ea+SQ8SUwRzwsQcJC+jOdiobp53P6N4Ws7FbjE/ /don2Tt8BqW7xlVlVaV6zY2ZZy0irE4HFamhqJUKoExNRX/RCXFyV7NgXKHCyZ2G9g OM8YAG6Vwa+c0LX2tcONO3AS0yRrMx9QTBojh0X0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109279] RISC-V: complex constants synthesized should be improved Date: Fri, 24 Mar 2023 23:33:50 +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: unknown X-Bugzilla-Keywords: 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: 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=3D109279 --- Comment #9 from Andrew Pinski --- The comment in riscv.cc: /* We can't call gen_reg_rtx from a splitter, because this might realloc the regno_reg_rtx array, which would invalidate reg rtx pointers in the combine undo buffer. */ bool can_create_pseudo =3D can_create_pseudo_p () && ! in_splitter; is no longer true after r12-8030-g61bee6aed26eb3 so you should be able to get rid of the `&& ! in_splitter` part.=