Re: [PATCH] vect: Support vector with length cost modeling

2020-07-21 Thread Richard Biener via Gcc-patches
On Tue, Jul 21, 2020 at 7:52 AM Kewen.Lin wrote: > > Hi, > > This patch is to add the cost modeling for vector with length, > it mainly follows what we generate for vector with length in > functions vect_set_loop_controls_directly and vect_gen_len > at the worst case. > > For Power, the length is

[PATCH] vect: Support vector with length cost modeling

2020-07-20 Thread Kewen.Lin via Gcc-patches
Hi, This patch is to add the cost modeling for vector with length, it mainly follows what we generate for vector with length in functions vect_set_loop_controls_directly and vect_gen_len at the worst case. For Power, the length is expected to be in bits 0-7 (high bits), we have to model the cost