[2/7] Clean up vectorizer load/store costs
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 6 Jul 2016 08:11:31 +0000 (08:11 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 6 Jul 2016 08:11:31 +0000 (08:11 +0000)
commit892a981f1efb398768ad5a138fb7c971462d1e79
tree1f91e7c6c78093e4eabfdff3d368482457806d98
parentc01e092fb3a8fb91602b54d8b5f10cc23c27089c
[2/7] Clean up vectorizer load/store costs

Add a bit more commentary and try to make the structure more obvious.
The horrendous:

      if (grouped_access_p
          && represents_group_p
          && !store_lanes_p
          && !STMT_VINFO_STRIDED_P (stmt_info)
          && !slp_node)

checks go away in patch 6.

Tested on aarch64-linux-gnu and x86_64-linux-gnu.

gcc/
* tree-vect-stmts.c (vect_cost_group_size): Delete.
(vect_model_store_cost): Avoid calling it.  Use first_stmt_p
variable to indicate when once-per-group costs are being used.
(vect_model_load_cost): Likewise.  Fix comment and misindented code.

From-SVN: r238034
gcc/ChangeLog
gcc/tree-vect-stmts.c