]> gcc.gnu.org Git - gcc.git/commit
arm: Add GENERAL_AND_VPR_REGS regclass
authorChristophe Lyon <christophe.lyon@foss.st.com>
Wed, 13 Oct 2021 09:16:09 +0000 (09:16 +0000)
committerChristophe Lyon <christophe.lyon@foss.st.com>
Thu, 13 Jan 2022 14:10:26 +0000 (14:10 +0000)
commit699e0457fcab43a7f557bac6d93b5002049b6c03
tree3c56655a2f64958d3d31140d4d93b15e0e3c2ddb
parent2f3d15e94a694bbf5141a0e079639ee519e688bc
arm: Add GENERAL_AND_VPR_REGS regclass

At some point during the development of this patch series, it appeared
that in some cases the register allocator wants “VPR or general”
rather than “VPR or general or FP” (which is the same thing as
ALL_REGS).  The series does not seem to require this anymore, but it
seems to be a good thing to do anyway, to give the register allocator
more freedom.

CLASS_MAX_NREGS and arm_hard_regno_nregs need adjustment to avoid a
regression in gcc.dg/stack-usage-1.c when compiled with -mthumb
-mfloat-abi=hard -march=armv8.1-m.main+mve.fp+fp.dp.

2022-01-13  Christophe Lyon  <christophe.lyon@foss.st.com>

gcc/
* config/arm/arm.h (reg_class): Add GENERAL_AND_VPR_REGS.
(REG_CLASS_NAMES): Likewise.
(REG_CLASS_CONTENTS): Likewise.
(CLASS_MAX_NREGS): Handle VPR.
* config/arm/arm.c (arm_hard_regno_nregs): Handle VPR.
gcc/config/arm/arm.c
gcc/config/arm/arm.h
This page took 0.06167 seconds and 6 git commands to generate.