[36/46] Add a pattern_stmt_p field to stmt_vec_info
commite05b01adf82d5c2e8fd90303af2a8f7c958060dd
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:25:47 +0000 (31 14:25 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:25:47 +0000 (31 14:25 +0000)
treecea9147d59e72017aab54498a40a8debc589f618
parent726ee479c42fedd8ab7524a21c5b89d23ac8b9b1
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263151 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-vect-patterns.c
gcc/tree-vectorizer.h