[6/n] PR85694: Add a vect_get_internal_def helper
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 20 Jun 2018 08:09:48 +0000 (08:09 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 20 Jun 2018 08:09:48 +0000 (08:09 +0000)
commit259273074e86ec82c73a4420c102912de6baeabd
tree46e28807db484415db7da05edf4c7dcc3871d63b
parent1f78617090283f22825807fcc0533e27e983dcde
[6/n] PR85694: Add a vect_get_internal_def helper

This patch adds a helper for pattern code that wants to find an
internal (vectorisable) definition of an SSA name.

A later patch will make more use of this, and alter the definition.

2018-06-20  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-patterns.c (vect_get_internal_def): New function.
(vect_recog_dot_prod_pattern, vect_recog_sad_pattern)
(vect_recog_vector_vector_shift_pattern, check_bool_pattern)
(search_type_for_mask_1): Use it.

From-SVN: r261789
gcc/ChangeLog
gcc/tree-vect-patterns.c