public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Maciej W. Rozycki <macro@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-4054] ira: Remove duplicate `memset' over `full_costs' from `assign_hard_reg'
Date: Tue, 15 Nov 2022 11:23:54 +0000 (GMT)	[thread overview]
Message-ID: <20221115112354.A82693893678@sourceware.org> (raw)

https://gcc.gnu.org/g:dd320623acb2d51745406bf1acac4a5fcfcbe13f

commit r13-4054-gdd320623acb2d51745406bf1acac4a5fcfcbe13f
Author: Maciej W. Rozycki <macro@embecosm.com>
Date:   Tue Nov 15 11:23:02 2022 +0000

    ira: Remove duplicate `memset' over `full_costs' from `assign_hard_reg'
    
    Remove duplicate clearing of `full_costs' made in `assign_hard_reg',
    which has been there since the beginning, i.e. commit 058e97ecf33a
    ("IRA has been merged into trunk"),
    <https://gcc.gnu.org/ml/gcc-patches/2008-08/msg01932.html>.
    
            gcc/
            * ira-color.cc (assign_hard_reg): Remove duplicate `memset' over
            `full_costs'.

Diff:
---
 gcc/ira-color.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/ira-color.cc b/gcc/ira-color.cc
index ffe73b61c45..f5f76e8089c 100644
--- a/gcc/ira-color.cc
+++ b/gcc/ira-color.cc
@@ -1961,7 +1961,6 @@ assign_hard_reg (ira_allocno_t a, bool retry_p)
   aclass = ALLOCNO_CLASS (a);
   class_size = ira_class_hard_regs_num[aclass];
   best_hard_regno = -1;
-  memset (full_costs, 0, sizeof (int) * class_size);
   mem_cost = 0;
   memset (costs, 0, sizeof (int) * class_size);
   memset (full_costs, 0, sizeof (int) * class_size);

                 reply	other threads:[~2022-11-15 11:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221115112354.A82693893678@sourceware.org \
    --to=macro@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).