This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR81362: Vector peeling


On Wed, Jul 12, 2017 at 5:11 PM, Robin Dapp <rdapp@linux.vnet.ibm.com> wrote:
> 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.

Ok.

Thanks,
Richard.

> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]