Re: [PATCH, rs6000] Allow swap removal for convert-splat idiom

2015-01-29 Thread David Edelsohn
On Sun, Jan 25, 2015 at 7:44 PM, Bill Schmidt wrote: > Hi, > > A not uncommon idiom on Power for vector floating-point computation is > used to convert a double-precision value to single-precision and copy it > to all elements of a vector float. For this we see a specific convert > UNSPEC feeding

[PATCH, rs6000] Allow swap removal for convert-splat idiom

2015-01-25 Thread Bill Schmidt
Hi, A not uncommon idiom on Power for vector floating-point computation is used to convert a double-precision value to single-precision and copy it to all elements of a vector float. For this we see a specific convert UNSPEC feeding an xxspltw pattern that copies from BE element zero. Since all e