Add missing check for BUILT_IN_MD (PR 91444)
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 15 Aug 2019 09:23:06 +0000 (09:23 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 15 Aug 2019 09:23:06 +0000 (09:23 +0000)
commiteb2211e35713796c5899939d983d9e8c6d037e60
treed261860976df9e6e19568c432c5df066059cac81
parent5c38705dbde776f68bf1f99a71657d0e21b772a5
Add missing check for BUILT_IN_MD (PR 91444)

In this PR we were passing an ordinary non-built-in function to
targetm.vectorize.builtin_md_vectorized_function, which is only
supposed to handle BUILT_IN_MD.

2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
PR middle-end/91444
* tree-vect-stmts.c (vectorizable_call): Check that the function
is a BUILT_IN_MD function before passing it to
targetm.vectorize.builtin_md_vectorized_function.

From-SVN: r274524
gcc/ChangeLog
gcc/tree-vect-stmts.c