Re: [PATCH] tree-optimization/111228 - combine two VEC_PERM_EXPRs

2023-08-30 Thread Richard Biener via Gcc-patches
On Wed, 30 Aug 2023, Jakub Jelinek wrote: > On Wed, Aug 30, 2023 at 01:54:46PM +0200, Richard Biener via Gcc-patches > wrote: > > * gcc.dg/tree-ssa/forwprop-42.c: New testcase. > > > --- /dev/null > > +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-42.c > > @@ -0,0 +1,17 @@ > > +/* { dg-do comp

Re: [PATCH] tree-optimization/111228 - combine two VEC_PERM_EXPRs

2023-08-30 Thread Jakub Jelinek via Gcc-patches
On Wed, Aug 30, 2023 at 01:54:46PM +0200, Richard Biener via Gcc-patches wrote: > * gcc.dg/tree-ssa/forwprop-42.c: New testcase. > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-42.c > @@ -0,0 +1,17 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O -fdump-tree-cddce1" } */ >

[PATCH] tree-optimization/111228 - combine two VEC_PERM_EXPRs

2023-08-30 Thread Richard Biener via Gcc-patches
The following adds simplification of two VEC_PERM_EXPRs where the later one replaces all elements from either the first or the second input of the earlier permute. This allows a three input permute to be simplified to a two input one. I'm following the existing two input simplification case and o