[PATCH, rs6000] Handle vector reductions in swap optimization

2016-01-06 Thread Bill Schmidt
Hi, Swap optimization is missing some opportunities when vector reductions are present. This patch adds logic to recognize vector-reduction patterns and mark them as swappable. Some of these are very easy to recognize, given the presence of a specific unspec. For V2DF reductions, we have to

Re: [PATCH, rs6000] Handle vector reductions in swap optimization

2016-01-06 Thread David Edelsohn
On Wed, Jan 6, 2016 at 5:37 PM, Bill Schmidt wrote: > Hi, > > Swap optimization is missing some opportunities when vector reductions > are present. This patch adds logic to recognize vector-reduction > patterns and mark them as swappable. Some of these are very easy