[4/n] PR85694: Remove redundant calls to types_compatible_p
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 20 Jun 2018 08:07:37 +0000 (08:07 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 20 Jun 2018 08:07:37 +0000 (08:07 +0000)
commit44ae7a002c23ff0ab884350b5f05876ece985387
treee2828bf542a88058b47b46e3fe745a3d77498481
parented7b8123fab1de4d6da98774262c123f6d1226f9
[4/n] PR85694: Remove redundant calls to types_compatible_p

tree-vect-patterns.c checked that operands to primitive arithmetic ops
are compatible with each other and with the result.  The checks date
back years and have long been redundant with verify_gimple_stmt.

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

gcc/
* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Remove
redundant check that the types of a PLUS_EXPR or MULT_EXPR agree.
(vect_recog_sad_pattern): Likewise PLUS_EXPR, ABS_EXPR and MINUS_EXPR.
(vect_recog_widen_mult_pattern): Likewise MULT_EXPR.
(vect_recog_widen_sum_pattern): Likewise PLUS_EXPR.

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