Re: [PATCH, rs6000] Fix PR77613 (swap optimization for splat-with-truncate)

2016-09-16 Thread Segher Boessenkool
On Fri, Sep 16, 2016 at 10:13:09AM -0500, Bill Schmidt wrote: > Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no > regressions. Ok for trunk, and eventual backport to 6 and 5 branches? Okay and okay. One nit... > --- gcc/config/rs6000/rs6000.c(revision 240187) > +++ gcc/

[PATCH, rs6000] Fix PR77613 (swap optimization for splat-with-truncate)

2016-09-16 Thread Bill Schmidt
Hi, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77613 identifies a case where we fail to remove swaps from a region because it contains a form of splat that we don't yet recognize. This patch adds support for splat insns that have an embedded truncate, such as the vsx_vsplth_di pattern. Bootstr