Re: [RFC PATCH] Improve V8SFmode and V4DFmode smin/smax reductions

2011-09-16 Thread Richard Henderson
On 09/16/2011 04:24 AM, Jakub Jelinek wrote: > * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ... > (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode. > * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf, > reduc_smin_v4sf): Adjust callers. >

[RFC PATCH] Improve V8SFmode and V4DFmode smin/smax reductions

2011-09-16 Thread Jakub Jelinek
Hi! I've noticed that the code generated for -mavx min/max reductions is terrible, the following patch is an attempt to improve it. In fad function (i.e. V4DFmode reduction) the difference with the patch (plus the patch I've posted today) is: - vmovapd %ymm0, -56(%rsp) - vmovapd %ymm0