Re: [PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-24 Thread Richard Biener
On Fri, 24 May 2019, Bernhard Reutner-Fischer wrote: > On 20 May 2019 12:31:46 CEST, Richard Biener wrote: > > > > >So the following is what I have applied. > > Typo in the guard? > > s/GCC_VEC_PERN_INDICES_H/GCC_VEC_PERM_INDICES_H/ > > ? Yeah, but copied that from vec-perm-indices.h ... (ot

Re: [PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-23 Thread Bernhard Reutner-Fischer
On 20 May 2019 12:31:46 CEST, Richard Biener wrote: > >So the following is what I have applied. Typo in the guard? s/GCC_VEC_PERN_INDICES_H/GCC_VEC_PERM_INDICES_H/ ? I.e. not pern but perm, with an 'M' thanks, >Bootstrapped / tested on x86_64-unknown-linux-gnu. > >Richard. > >2019-05-20 Rich

Re: [PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-20 Thread Richard Biener
On Mon, 20 May 2019, Richard Sandiford wrote: > Richard Biener writes: > > On Fri, 17 May 2019, Richard Biener wrote: > > > >> > >> This moves things from fold-const.c to match.pd. > > > > So there's an issue that was appearantly side-stepped in the GENERIC > > folding by not re-folding the resu

Re: [PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-20 Thread Richard Sandiford
Richard Biener writes: > On Fri, 17 May 2019, Richard Biener wrote: > >> >> This moves things from fold-const.c to match.pd. > > So there's an issue that was appearantly side-stepped in the GENERIC > folding by not re-folding the result. > > /* Generate a canonical form of the selector.

Re: [PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-20 Thread Richard Biener
On Fri, 17 May 2019, Richard Biener wrote: > > This moves things from fold-const.c to match.pd. So there's an issue that was appearantly side-stepped in the GENERIC folding by not re-folding the result. /* Generate a canonical form of the selector. */ if (sel.encoding () != bui

[PATCH] Move VEC_PERM_EXPR folding to match.pd

2019-05-17 Thread Richard Biener
This moves things from fold-const.c to match.pd. Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard. 2019-05-17 Richard Biener * gimple-match-head.c: Include vec-perm-indices.h. * generic-match-head.c: Likewise. * fold-const.h (fold_vec_perm): Declare