[PATCH] Move VEC_PERM_EXPR folding to match.pd
Richard Biener
rguenther@suse.de
Fri May 24 07:59:00 GMT 2019
On Fri, 24 May 2019, Bernhard Reutner-Fischer wrote:
> On 20 May 2019 12:31:46 CEST, Richard Biener <rguenther@suse.de> 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 ... (otherwise
it wouldn't work obviously)
Richard.
> I.e. not pern but perm, with an 'M'
> thanks,
>
> >Bootstrapped / tested on x86_64-unknown-linux-gnu.
> >
> >Richard.
> >
> >2019-05-20 Richard Biener <rguenther@suse.de>
> >
> > * gimple-match-head.c: Include vec-perm-indices.h.
> > * generic-match-head.c: Likewise.
> > * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
> > is included.
>
>
> >Index: gcc/fold-const.h
> >===================================================================
> >--- gcc/fold-const.h (revision 271320)
> >+++ gcc/fold-const.h (working copy)
> >@@ -100,6 +100,9 @@ extern tree fold_bit_and_mask (tree, tre
> > tree, enum tree_code, tree, tree,
> > tree, enum tree_code, tree, tree, tree *);
> > extern tree fold_read_from_constant_string (tree);
> >+#if GCC_VEC_PERN_INDICES_H
> >+extern tree fold_vec_perm (tree, tree, tree, const vec_perm_indices
> >&);
> >+#endif
>
>
--
Richard Biener <rguenther@suse.de>
SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany;
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah; HRB 21284 (AG Nürnberg)
More information about the Gcc-patches
mailing list