From: Maciej W. Rozycki Date: Tue, 15 Nov 2022 11:23:02 +0000 (+0000) Subject: ira: Remove duplicate `memset' over `full_costs' from `assign_hard_reg' X-Git-Tag: basepoints/gcc-14~3153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd320623acb2d51745406bf1acac4a5fcfcbe13f;p=thirdparty%2Fgcc.git 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"), . gcc/ * ira-color.cc (assign_hard_reg): Remove duplicate `memset' over `full_costs'. --- diff --git a/gcc/ira-color.cc b/gcc/ira-color.cc index ffe73b61c450..f5f76e8089c9 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);