Re: [PATCH] Optimize v*gather* with masks with all high bits set

2011-11-04 Thread Richard Henderson
On 11/04/2011 08:53 AM, Jakub Jelinek wrote: > On Fri, Nov 04, 2011 at 08:48:30AM -0700, Richard Henderson wrote: >> On 11/04/2011 03:57 AM, Jakub Jelinek wrote: >>> + /* Optimize. If mask is known to have all high bits set, >>> +replace op0 with pc_rtx to signal that the instruction >>>

Re: [PATCH] Optimize v*gather* with masks with all high bits set

2011-11-04 Thread Jakub Jelinek
On Fri, Nov 04, 2011 at 08:48:30AM -0700, Richard Henderson wrote: > On 11/04/2011 03:57 AM, Jakub Jelinek wrote: > > + /* Optimize. If mask is known to have all high bits set, > > +replace op0 with pc_rtx to signal that the instruction > > +overwrites the whole destination and doesn'

Re: [PATCH] Optimize v*gather* with masks with all high bits set

2011-11-04 Thread Richard Henderson
On 11/04/2011 03:57 AM, Jakub Jelinek wrote: > + /* Optimize. If mask is known to have all high bits set, > + replace op0 with pc_rtx to signal that the instruction > + overwrites the whole destination and doesn't use its > + previous contents. */ Why pass in PC, rather than

[PATCH] Optimize v*gather* with masks with all high bits set

2011-11-04 Thread Jakub Jelinek
Hi! This patch on top of the vgather* vectorization patch optimizes what has been discussed in: http://gcc.gnu.org/ml/gcc/2011-11/msg00078.html 2011-11-04 Jakub Jelinek * config/i386/i386.c (ix86_expand_builtin): If gather mask argument is known to have all high bits set, pass