Re: [PATCH 3/9] vect: Adjust vectorizable_load costing on VMAT_INVARIANT

2023-06-30 Thread Richard Biener via Gcc-patches
On Tue, Jun 13, 2023 at 4:03 AM Kewen Lin wrote: > > This patch adjusts the cost handling on VMAT_INVARIANT in > function vectorizable_load. We don't call function > vect_model_load_cost for it any more. > > To make the costing on VMAT_INVARIANT better, this patch is > to query hoist_defs_of_uses

[PATCH 3/9] vect: Adjust vectorizable_load costing on VMAT_INVARIANT

2023-06-12 Thread Kewen Lin via Gcc-patches
This patch adjusts the cost handling on VMAT_INVARIANT in function vectorizable_load. We don't call function vect_model_load_cost for it any more. To make the costing on VMAT_INVARIANT better, this patch is to query hoist_defs_of_uses for hoisting decision, and add costs for different "where" bas