aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2024-07-22 10:28:19 +0100
committerTamar Christina <tamar.christina@arm.com>2024-07-22 10:28:19 +0100
commit0c5c0c959c2e592b84739f19ca771fa69eb8dfee (patch)
tree5a38c27302dfe0d078cd06ecf2c96e5358f0364d /gcc/fold-const.cc
parentaf792f0226e479b165a49de5e8f9e1d16a4b26c0 (diff)
downloadgcc-0c5c0c959c2e592b84739f19ca771fa69eb8dfee.zip
gcc-0c5c0c959c2e592b84739f19ca771fa69eb8dfee.tar.gz
gcc-0c5c0c959c2e592b84739f19ca771fa69eb8dfee.tar.bz2
AArch64: implement TARGET_VECTORIZE_CONDITIONAL_OPERATION_IS_EXPENSIVE [PR115531].
This implements the new target hook indicating that for AArch64 when possible we prefer masked operations for any type vs doing LOAD + SELECT or SELECT + STORE. Thanks, Tamar gcc/ChangeLog: PR tree-optimization/115531 * config/aarch64/aarch64.cc (aarch64_conditional_operation_is_expensive): New. (TARGET_VECTORIZE_CONDITIONAL_OPERATION_IS_EXPENSIVE): New. gcc/testsuite/ChangeLog: PR tree-optimization/115531 * gcc.dg/vect/vect-conditional_store_1.c: New test. * gcc.dg/vect/vect-conditional_store_2.c: New test. * gcc.dg/vect/vect-conditional_store_3.c: New test. * gcc.dg/vect/vect-conditional_store_4.c: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions