Fix PR81362: Vector peeling
authorRobin Dapp <rdapp@linux.vnet.ibm.com>
Tue, 18 Jul 2017 09:23:35 +0000 (09:23 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 18 Jul 2017 09:23:35 +0000 (09:23 +0000)
commitec15a152077b766a2b61c36f86172af05aa03ab5
treebe1907a923b236fb3c50be7ec8a8f85597b8f098
parent4169392a241995c854e72ab9ed74581bfe8c067a
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.

From-SVN: r250300
gcc/ChangeLog
gcc/tree-vect-data-refs.c