diff mbox series

[v4,03/12] arm: Add support for VPR_REG in arm_class_likely_spilled_p

Message ID 20220222150020.22852-4-christophe.lyon@linaro.org
State Committed
Commit 6769084fdf159fb5c0fd20c8d28cfef5b2126cb0
Headers show
Series ARM/MVE use vectors of boolean for predicates | expand

Commit Message

Christophe Lyon Feb. 22, 2022, 3 p.m. UTC
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>

	* config/arm/arm.cc (arm_class_likely_spilled_p): Handle VPR_REG.
diff mbox series


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.  */