]> git.ipfire.org Git - thirdparty/gcc.git/commit
[2/7] Clean up vectorizer load/store costs
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2016 08:11:31 +0000 (08:11 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jul 2016 08:11:31 +0000 (08:11 +0000)
commita13a9a3fc10e6ca1db8812503b703ab558be5840
tree1f91e7c6c78093e4eabfdff3d368482457806d98
parent1137da9c542927a3d11800a6f6027591739f28d6
[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.

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