From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 364443858CDB; Wed, 16 Aug 2023 17:21:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 364443858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692206490; bh=BbJOOCh1e2q5RBIYxsB0V+WN5hHZVdTtvGaf2Yk7Tms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=muyQK85oBbDYiDHFV9Oa1QtrpTiq9W5/C/wDU7vW3FfDnzAsy4nVb3uxbGvs1RKHE DJSBDVHhv8UWRc4NaRr8LtRx8sqALUNXnqeaecFZirFH+FOCjbvAO6WMJjcNMc7XB2 mlbpkyB55Bn8wws6hBL6xDl38eAXR7AcRSxOzEf8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110254] improve_allocation() routine does not update allocated_hardreg_p[] array Date: Wed, 16 Aug 2023 17:21:29 +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: unknown X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jskumari 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=3D110254 --- Comment #3 from CVS Commits --- The master branch has been updated by Surya Kumari Jangala : https://gcc.gnu.org/g:02ecc9a26324d142c5cd19d24526b9c23aabc1c3 commit r14-3251-g02ecc9a26324d142c5cd19d24526b9c23aabc1c3 Author: Surya Kumari Jangala Date: Mon Aug 14 09:34:56 2023 -0500 ira: update allocated_hardreg_p[] in improve_allocation() [PR110254] The improve_allocation() routine does not update the allocated_hardreg_p[] array after an allocno is assigned a register. If the register chosen in improve_allocation() is one that already has been assigned to a conflicting allocno, then allocated_hardreg_p[] already has the corresponding bit set to TRUE, so nothing needs to be done. But improve_allocation() can also choose a register that has not been assigned to a conflicting allocno, and also has not been assigned to any other allocno. In this case, allocated_hardreg_p[] has to be updated. 2023-07-21 Surya Kumari Jangala gcc/ PR rtl-optimization/110254 * ira-color.cc (improve_allocation): Update array allocated_hard_reg_p.=