[gcc r12-7336] arm: Add support for VPR_REG in arm_class_likely_spilled_p
Christophe Lyon
clyon@gcc.gnu.org
Tue Feb 22 15:57:58 GMT 2022
https://gcc.gnu.org/g:6769084fdf159fb5c0fd20c8d28cfef5b2126cb0
commit r12-7336-g6769084fdf159fb5c0fd20c8d28cfef5b2126cb0
Author: Christophe Lyon <christophe.lyon@arm.com>
Date: Wed Oct 13 09:16:14 2021 +0000
arm: Add support for VPR_REG in arm_class_likely_spilled_p
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:
---
gcc/config/arm/arm.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
More information about the Gcc-cvs
mailing list