From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9CA933858414; Wed, 1 Sep 2021 08:34:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CA933858414 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/102147] IRA dependent on 32-bit vs 64-bit pointer size Date: Wed, 01 Sep 2021 08:34:53 +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.0 X-Bugzilla-Keywords: internal-improvement, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2021 08:34:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102147 --- Comment #3 from Richard Biener --- Well, ira_conflict_vector_profitable_p is dependent on sizeof (ira_object_t) but it's a decision about the representation of conflicts. The question is= now whether at any point processing of the two representations can yield differ= ent answers. That might happen if we somewhere iterate over conflicts? I suppose the simplest fix for the actual bootstrap issue is to make ira_conflict_vector_profitable_p independent of sizeof (ira_object_t) and sizeof (IRA_INT_TYPE) and simplify return (2 * sizeof (ira_object_t) * (num + 1) < 3 * nw * sizeof (IRA_INT_TYPE)); for example to return (2 * (num + 1) < 3 * nw); (note 'nw' is also rounded up to IRA_INT_BITS).=