[42/46] Add vec_info::replace_stmt
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jul 2018 14:26:22 +0000 (14:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 31 Jul 2018 14:26:22 +0000 (14:26 +0000)
commit9d97912b85ac4a86767f4f1b6c47efa1ce0ba6af
treecf5cf98ba7b03603056288cb5b59dda9ca31e53f
parentb5b56c2a039cd308a9d00fc35baf65c1fb59070b
[42/46] Add vec_info::replace_stmt

This patch adds a helper for replacing a stmt_vec_info's statement with
a new statement.

2018-07-31  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vectorizer.h (vec_info::replace_stmt): Declare.
* tree-vectorizer.c (vec_info::replace_stmt): New function.
* tree-vect-slp.c (vect_remove_slp_scalar_calls): Use it.
* tree-vect-stmts.c (vectorizable_call): Likewise.
(vectorizable_simd_clone_call): Likewise.

From-SVN: r263157
gcc/ChangeLog
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h