]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Don't pass subtype to vect_widened_op_tree where not needed [PR 110142]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 12 Jun 2023 09:30:39 +0000 (10:30 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 12 Jun 2023 09:34:10 +0000 (10:34 +0100)
commit3ad0ef34ccbe656a7a9e5962fe1173226104174a
tree02ac819aa8bba035302c5c2236ae739e8c4c2157
parente52be6034fa0171c26f571f4ad1a5686594f32a9
vect: Don't pass subtype to vect_widened_op_tree where not needed [PR 110142]

This patch fixes an issue introduced by
g:2f482a07365d9f4a94a56edd13b7f01b8f78b5a0, where a subtype was beeing passed
to vect_widened_op_tree, when no subtype was to be used. This lead to an
errorneous use of IFN_VEC_WIDEN_MINUS.

gcc/ChangeLog:

PR middle-end/110142
* tree-vect-patterns.cc (vect_recog_widen_op_pattern): Don't pass
subtype to vect_widened_op_tree and remove subtype parameter, also
remove superfluous overloaded function definition.
(vect_recog_widen_plus_pattern): Remove subtype parameter and dont pass
to call to vect_recog_widen_op_pattern.
(vect_recog_widen_minus_pattern): Likewise.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/pr110142.c: New test.
gcc/testsuite/gcc.dg/vect/pr110142.c [new file with mode: 0644]
gcc/tree-vect-patterns.cc