[PATCH] Fix PR81362: Vector peeling
Robin Dapp
rdapp@linux.vnet.ibm.com
Wed Jul 12 15:11:00 GMT 2017
The attached patch fixes PR81362.
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.
Regards
Robin
--
gcc/ChangeLog:
2017-07-12 Robin Dapp <rdapp@linux.vnet.ibm.com>
* (vect_enhance_data_refs_alignment):
Remove body_cost_vec from _vect_peel_extended_info.
tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
Do not set body_cost_vec.
(vect_peeling_hash_choose_best_peeling): Remove body_cost_vec
and npeel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-peeling-fix81362.diff
Type: text/x-patch
Size: 4236 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170712/98307d6c/attachment.bin>
More information about the Gcc-patches
mailing list