Re: [PATCH 10/10] vect: Consider vec_perm costing for VMAT_CONTIGUOUS_REVERSE

2023-09-27 Thread Richard Biener
On Thu, Sep 14, 2023 at 5:12 AM Kewen Lin wrote: > > For VMAT_CONTIGUOUS_REVERSE, the transform code in function > vectorizable_store generates a VEC_PERM_EXPR stmt before > storing, but it's never considered in costing. > > This patch is to make it consider vec_perm in costing, it > adjusts the o

[PATCH 10/10] vect: Consider vec_perm costing for VMAT_CONTIGUOUS_REVERSE

2023-09-13 Thread Kewen Lin via Gcc-patches
For VMAT_CONTIGUOUS_REVERSE, the transform code in function vectorizable_store generates a VEC_PERM_EXPR stmt before storing, but it's never considered in costing. This patch is to make it consider vec_perm in costing, it adjusts the order of transform code a bit to make it easy to early return fo