[36/46] Add a pattern_stmt_p field to stmt_vec_info
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jul 2018 14:25:47 +0000 (14:25 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 31 Jul 2018 14:25:47 +0000 (14:25 +0000)
commit634e7150449157267db1a1152370b11446acb6d0
treecea9147d59e72017aab54498a40a8debc589f618
parentcef6cac8bcacc3314760686dfae7b23efdf7db07
[36/46] Add a pattern_stmt_p field to stmt_vec_info

This patch adds a pattern_stmt_p field to stmt_vec_info, so that it's
possible to tell whether the statement is a pattern statement without
referring to other statements.  The new field goes in what was
previously a hole in the structure, so the size is the same as before.

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

gcc/
* tree-vectorizer.h (_stmt_vec_info::pattern_stmt_p): New field.
(is_pattern_stmt_p): Use it.
* tree-vect-patterns.c (vect_init_pattern_stmt): Set pattern_stmt_p
on pattern statements.

From-SVN: r263151
gcc/ChangeLog
gcc/tree-vect-patterns.c
gcc/tree-vectorizer.h