Re: [PATCH, rs6000] Fix swap optimization to handle __builtin_vsx_xxspltd

2017-01-14 Thread Segher Boessenkool
Hi Bill, On Fri, Jan 13, 2017 at 10:28:33AM -0600, Bill Schmidt wrote: > There is a gap in swap optimization that does not properly handle code > generated by __builtin_vsx_xxspltd. This is expanded into an > UNSPEC_VSX_XXSPLTD, which is currently treated as ok to swap. It should > instead be t

[PATCH, rs6000] Fix swap optimization to handle __builtin_vsx_xxspltd

2017-01-13 Thread Bill Schmidt
Hi, There is a gap in swap optimization that does not properly handle code generated by __builtin_vsx_xxspltd. This is expanded into an UNSPEC_VSX_XXSPLTD, which is currently treated as ok to swap. It should instead be treated as ok to swap, with special handling to modify the lane used as the