arm: Add support for VPR_REG in arm_class_likely_spilled_p
authorChristophe Lyon <christophe.lyon@arm.com>
Wed, 13 Oct 2021 09:16:14 +0000 (09:16 +0000)
committerChristophe Lyon <christophe.lyon@foss.st.com>
Tue, 22 Feb 2022 15:55:06 +0000 (15:55 +0000)
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.

gcc/config/arm/arm.cc

index 9c19589..8d7f095 100644 (file)
@@ -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.  */