]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR81362: Vector peeling
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jul 2017 09:23:35 +0000 (09:23 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jul 2017 09:23:35 +0000 (09:23 +0000)
commitf0f5171608d68c3cb3aa6aa43d64814d4f9d67d5
treebe1907a923b236fb3c50be7ec8a8f85597b8f098
parentae3af1d5f1780e8ca50e687f8caef398f5ec36a4
Fix PR81362: Vector peeling

npeel was erroneously overwritten by vect_peeling_hash_get_lowest_cost
although the corresponding dataref is not used afterwards.  It should
be safe to get rid of the npeel parameter since we use the returned
peeling_info's npeel anyway.  Also removed the body_cost_vec parameter
which is not used elsewhere.

gcc/ChangeLog:

2017-07-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>

* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
body_cost_vec from _vect_peel_extended_info.
(vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
(vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
npeel.

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