public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Christophe Lyon <christophe.lyon.oss@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH v4 03/12] arm: Add support for VPR_REG in arm_class_likely_spilled_p
Date: Tue, 22 Feb 2022 16:00:11 +0100	[thread overview]
Message-ID: <20220222150020.22852-4-christophe.lyon@linaro.org> (raw)
In-Reply-To: <20220222150020.22852-1-christophe.lyon@linaro.org>

From: Christophe Lyon <christophe.lyon.oss@gmail.com>

VPR_REG is the only register in its class, so it should be handled by
TARGET_CLASS_LIKELY_SPILLED_P, which is achieved by calling
default_class_likely_spilled_p.  No test fails without this patch, but
it seems it should be implemented.

Most of the work of this patch series was carried out while I was
working at STMicroelectronics as a Linaro assignee.

2022-02-22  Christophe Lyon  <christophe.lyon@arm.com>

	gcc/
	* config/arm/arm.cc (arm_class_likely_spilled_p): Handle VPR_REG.

diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index 9c19589186f..8d7f095b59b 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -29369,7 +29369,7 @@ arm_class_likely_spilled_p (reg_class_t rclass)
       || rclass  == CC_REG)
     return true;
 
-  return false;
+  return default_class_likely_spilled_p (rclass);
 }
 
 /* Implements target hook small_register_classes_for_mode_p.  */
-- 
2.25.1


  parent reply	other threads:[~2022-02-22 15:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 15:00 [PATCH v4 00/12] ARM/MVE use vectors of boolean for predicates Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 01/12] arm: Add new tests for comparison vectorization with Neon and MVE Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 02/12] arm: Add GENERAL_AND_VPR_REGS regclass Christophe Lyon
2022-02-22 15:00 ` Christophe Lyon [this message]
2022-02-22 15:00 ` [PATCH v4 04/12] arm: Fix mve_vmvnq_n_<supf><mode> argument mode Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 05/12] arm: Implement MVE predicates as vectors of booleans Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 06/12] arm: Implement auto-vectorized MVE comparisons with vectors of boolean predicates Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 07/12] arm: Fix vcond_mask expander for MVE (PR target/100757) Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 08/12] arm: Convert remaining MVE vcmp builtins to predicate qualifiers Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 09/12] arm: Convert more MVE " Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 10/12] arm: Convert more load/store " Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 11/12] arm: Convert more MVE/CDE " Christophe Lyon
2022-02-22 15:00 ` [PATCH v4 12/12] arm: Add VPR_REG to ALL_REGS Christophe Lyon

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=20220222150020.22852-4-christophe.lyon@linaro.org \
    --to=christophe.lyon.oss@gmail.com \
    --cc=gcc-patches@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).