From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED1213836D2E; Fri, 16 Dec 2022 11:32:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED1213836D2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671190351; bh=tKvu7lxdeEeZiGjiouQNkpDuqPpRp47ePA+dY9i/JDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YF86Ys5MGx63VoksQcvU5676rwZQwIShWbO6NqnHPCLDJQigaePc/9gqB0SPNiZas AoXwUzD7yf+mpvUKuBq3pjhMJHaW6iZ7i36DglFhHVj55xxiRm+nUAyIGGuOpC9XCO 51ceCsEcsqoI8UnYRJvOKyOAoLScvXR6is3/DpwI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108086] [11/12/13 Regression] internal compiler error: in set_accesses, at rtl-ssa/internals.inl:449 Date: Fri, 16 Dec 2022 11:32:31 +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: 12.2.0 X-Bugzilla-Keywords: compile-time-hog, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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=3D108086 --- Comment #13 from Richard Biener --- (In reply to Richard Biener from comment #12) > A regression from GCC 10 which compiles this in 90s at -O1. >=20 > Richard? Can you please look at this special-case of BB0 insn_info? The following might be one way to "fix" it (until we do a bigger testcase) diff --git a/gcc/rtl-ssa/insns.h b/gcc/rtl-ssa/insns.h index f7215972845..b0144f258b2 100644 --- a/gcc/rtl-ssa/insns.h +++ b/gcc/rtl-ssa/insns.h @@ -403,8 +403,7 @@ private: // MAX_RECOG_OPERANDS is the maximum number of pseudos that can be // defined by an instruction, so the number of definitions should fit // easily in 16 bits. - unsigned int m_num_uses; - unsigned int m_num_defs : 16; + unsigned int m_num_uses : 24; // Flags returned by the accessors above. unsigned int m_is_debug_insn : 1; @@ -412,9 +411,13 @@ private: unsigned int m_is_asm : 1; unsigned int m_has_pre_post_modify : 1; unsigned int m_has_volatile_refs : 1; + // For future expansion. + unsigned int m_spare : 3; + // Keep 32bit aligned + unsigned int m_num_defs : 24; // For future expansion. - unsigned int m_spare : 11; + unsigned int m_spare : 8; // The program point at which the instruction occurs. //=