diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-08-05 14:03:23 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-08-05 14:03:23 +0100 |
commit | 783d809f0bb13a9f50139d03c328f59f9e3840c7 (patch) | |
tree | 9508468cf3b62e3ba71bb3249fe5fb1a2540d75e /libcpp | |
parent | c1cdabe3aab817d95a8db00a8b5e9f6bcdea936f (diff) | |
download | gcc-783d809f0bb13a9f50139d03c328f59f9e3840c7.zip gcc-783d809f0bb13a9f50139d03c328f59f9e3840c7.tar.gz gcc-783d809f0bb13a9f50139d03c328f59f9e3840c7.tar.bz2 |
vect: Move costing helpers from aarch64 code
aarch64.c has various routines to test for specific kinds of
vector statement cost. The routines aren't really target-specific,
so following a suggestion from Richi, this patch moves them to a new
section of tree-vectorizer.h.
gcc/
* tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
(vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
(vect_is_extending_load, vect_is_integer_truncation): New functions,
moved from aarch64.c but given different names.
* config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
(aarch64_is_reduction, aarch64_reduc_type)
(aarch64_embedded_comparison_type, aarch64_comparison_type)
(aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
in favor of the above. Update callers accordingly.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions