> I leave testcases untouched for now.  My thought is:
>   - For slp-{1,3,5}.c, we need a segment cost change (cost table
>     update like C950 or introduce segment scaling) in a follow-up patch.
>   - For bswap16-0.c, no idea how to address it since we can't recognize
>     it's a cheaper perm.  Maybe just leave it as is?  I think keeping
>     permutes at a lower LMUL won't be a bad thing.

Right, the segment permute costs are definitely too low.
I think Ascalon's numbers are currently the best published ones and I'm 
seeing:

1, 2.5, 4, 9, 9.6, 10.6, 11

for vlseg2, 3, ... (not including LMUL for now).  So we should IMHO
use at least similar numbers for our default, if not worse.  That can be 
a separate patch.

Similarly, the best gather, compress, and slide numbers for 
LMUL1,2,4,8 are:

gather: 0.5, 1, 8, 31
compress: 0.5, 3, 6.3, 17
slidedown: 0.5, 1, 5.5, 18

This is all throughput.  So maybe quadratic is a bit too pessimistic.

-- 
Regards
 Robin

Reply via email to