[AArch64] Add a aarch64_sve_mode_p query
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 15 Aug 2019 09:00:22 +0000 (09:00 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 15 Aug 2019 09:00:22 +0000 (09:00 +0000)
commit5c38705dbde776f68bf1f99a71657d0e21b772a5
tree463d991b05a991bc9e5260a9aa5ae0a2a98ab1eb
parent07108a9ebe4776610bb23f684b3a346d28511bed
[AArch64] Add a aarch64_sve_mode_p query

This patch adds an exported function for testing whether a mode is
an SVE mode.  The ACLE will make more use of it, but there's already
one place that can benefit.

2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
* config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
(aarch64_select_early_remat_modes): Use it.

From-SVN: r274523
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c