From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF0E43858284; Sun, 23 Apr 2023 01:57:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF0E43858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682215059; bh=XXcwK5eQWTg3VScDfobdKm5c7+tYOGrlh2BIG4rxi+o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yJvBwfs+zCwXh/t/8Zi7nAY31r30XeNQapRP1Yr8PthjDi+qTlMq5m58Mj+R7VGvR 49SaF4aqNKZamaIt/WP20bj2tOOdMivcO15APSGV5GTVhpz0vRJgRyaO978vTlZEM1 5S6k4WfktfsNQpHu3e67gT/9J/PRjonBQNXGyZgI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108707] suboptimal allocation with same memory op for many different instructions. Date: Sun, 23 Apr 2023 01:57:27 +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: 13.0 X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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=3D108707 --- Comment #7 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:0368d169492017cfab5622d38b15be94154d458c commit r14-172-g0368d169492017cfab5622d38b15be94154d458c Author: liuhongt Date: Wed Feb 8 12:42:27 2023 +0800 Use NO_REGS in cost calculation when the preferred register class are n= ot known yet. gcc/ChangeLog: PR rtl-optimization/108707 * ira-costs.cc (scan_one_insn): Use NO_REGS instead of GENERAL_REGS when preferred reg_class is not known. gcc/testsuite/ChangeLog: * gcc.target/i386/pr108707.c: New test.=