This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [match-and-simplify] adjust for pattern to allow multiple ids
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 8 Sep 2014 12:16:46 +0200
- Subject: Re: [match-and-simplify] adjust for pattern to allow multiple ids
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsCHaNHyFOFyZOVsVZrXO0yw+bdNc3WuLpaBqnfxL9z71A at mail dot gmail dot com>
On Sun, Sep 7, 2014 at 11:53 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Changes syntax of for pattern to:
> (for op (list1...) op2 (list2...) opN (listN...)
> patterns)
>
> Number of operator substitutions must be same.
Indeed.
Thanks - applied.
Richard.
> * genmatch.c (peek_ident): Change id to default argument with value 0.
> (parse_for): Adjust.
>
> * match-builtin.pd: Rewrite for-patterns to match new syntax.
> * match-comparison.pd: Likewise.
> * match-constant-folding.pd: Likewise.
> * match-conversions.pd: Likewise.
> * match-rotate.pd: Likewise.