diff options
author | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-12-20 16:41:52 +0000 |
---|---|---|
committer | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-12-20 16:44:34 +0000 |
commit | a3ff76278efe006dc0b50249c8e5baf565bff56b (patch) | |
tree | 16e07ecc0aafb07255a03f7b223093cd5ee71cce /gcc/fortran/options.cc | |
parent | a48dd581bf917fcd52fb9eab60943825ed96b6d4 (diff) | |
download | gcc-a3ff76278efe006dc0b50249c8e5baf565bff56b.zip gcc-a3ff76278efe006dc0b50249c8e5baf565bff56b.tar.gz gcc-a3ff76278efe006dc0b50249c8e5baf565bff56b.tar.bz2 |
veclower: improve selection of vector mode when lowering [PR 112787]
This patch addresses the issue reported in PR target/112787 by improving the
compute type selection. We do this by not considering types with more elements
than the type we are lowering since we'd reject such types anyway.
gcc/ChangeLog:
PR target/112787
* tree-vect-generic.cc (type_for_widest_vector_mode): Change function to
use original vector type and check widest vector mode has at most the
same number of elements.
(get_compute_type): Pass original vector type rather than the element
type to type_for_widest_vector_mode and remove now obsolete check for
the number of elements.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/pr112787.c: New test.
Diffstat (limited to 'gcc/fortran/options.cc')
0 files changed, 0 insertions, 0 deletions