public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Max Filippov <jcmvbkbc@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-10399] gcc: fix PR rtl-optimization/107482 Date: Tue, 29 Nov 2022 03:46:16 +0000 (GMT) [thread overview] Message-ID: <20221129034616.BB9EA3858D35@sourceware.org> (raw) https://gcc.gnu.org/g:01df02a881a0b6d7c5746e717a9d0355ee4e747a commit r11-10399-g01df02a881a0b6d7c5746e717a9d0355ee4e747a Author: Max Filippov <jcmvbkbc@gmail.com> Date: Mon Nov 7 13:58:49 2022 -0800 gcc: fix PR rtl-optimization/107482 gcc/ PR rtl-optimization/107482 * ira-color.c (assign_hard_reg): Only call update_costs_from_copies when retry_p is false. (cherry picked from commit e581490f0cfa80c58d2b648d71a44a597fbe3008) Diff: --- gcc/ira-color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/ira-color.c b/gcc/ira-color.c index d9f66e1e2bc..9f44157456d 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -1967,8 +1967,8 @@ assign_hard_reg (ira_allocno_t a, bool retry_p) restore_costs_from_copies (a); ALLOCNO_HARD_REGNO (a) = best_hard_regno; ALLOCNO_ASSIGNED_P (a) = true; - if (best_hard_regno >= 0) - update_costs_from_copies (a, true, ! retry_p); + if (best_hard_regno >= 0 && !retry_p) + update_costs_from_copies (a, true, true); ira_assert (ALLOCNO_CLASS (a) == aclass); /* We don't need updated costs anymore. */ ira_free_allocno_updated_costs (a);
reply other threads:[~2022-11-29 3:46 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=20221129034616.BB9EA3858D35@sourceware.org \ --to=jcmvbkbc@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: linkBe 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).