diff options
author | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-09-27 11:05:40 +0100 |
---|---|---|
committer | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-09-27 13:22:24 +0100 |
commit | b31218bc93683554077c68dec14f4217a5e66835 (patch) | |
tree | 0455ffd3ff9b6422e8e40c85eea58c217461e0a5 /libcpp | |
parent | f7d7e26f10e8e329c3521ae7475ed2dfa38ba677 (diff) | |
download | gcc-b31218bc93683554077c68dec14f4217a5e66835.zip gcc-b31218bc93683554077c68dec14f4217a5e66835.tar.gz gcc-b31218bc93683554077c68dec14f4217a5e66835.tar.bz2 |
vect, omp: inbranch simdclone dropping const
The const attribute is ignored when simdclone's are used inbranch. This is due
to the fact that when analyzing a MASK_CALL we were not looking at the targeted
function for flags, but instead only at the internal function call itself.
This patch adds code to make sure we look at the target function to check for
the const attribute and enables the autovectorization of inbranch const
simdclones without needing the loop to be adorned the 'openmp simd' pragma.
gcc/ChangeLog:
* tree-data-ref.cc (include calls.h): Add new include.
(get_references_in_stmt): Correctly handle IFN_MASK_CALL.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-simd-clone-19.c: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions