]> gcc.gnu.org Git - gcc.git/commit
veclower: improve selection of vector mode when lowering [PR 112787]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 20 Dec 2023 16:41:52 +0000 (16:41 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 20 Dec 2023 16:44:34 +0000 (16:44 +0000)
commita3ff76278efe006dc0b50249c8e5baf565bff56b
tree16e07ecc0aafb07255a03f7b223093cd5ee71cce
parenta48dd581bf917fcd52fb9eab60943825ed96b6d4
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.
gcc/testsuite/gcc.target/aarch64/pr112787.c [new file with mode: 0644]
gcc/tree-vect-generic.cc
This page took 0.051719 seconds and 5 git commands to generate.