]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Restore optab_vector argument [PR106250]
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 11 Jul 2022 14:59:00 +0000 (15:59 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 11 Jul 2022 14:59:00 +0000 (15:59 +0100)
commite7a7fed818d238d45b18dfd927cde93b4711052d
treeb84621e1042aeffcc24b65c7b5cc02ee5e13d1b1
parentcb7b01db7a1979a45fd1dce87a8738e80568520e
vect: Restore optab_vector argument [PR106250]

In g:76c3041b856cb0 I'd removed a "C ? optab_vector : optab_mixed_sign"
argument from a call to directly_supported_p, thinking that the argument
only existed because of the condition (which I was removing).  But the
difference between the scalar and vector forms matters for shifts,
so we do still need the argument.

gcc/
PR tree-optimization/106250
* tree-vect-loop.cc (vectorizable_reduction): Reinstate final
argument to directly_supported_p.
gcc/testsuite/gcc.dg/vect/pr106250.c [new file with mode: 0644]
gcc/tree-vect-loop.cc