This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [GSoC] decision tree first steps
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>, Diego Novillo <dnovillo at google dot com>, gcc <gcc at gcc dot gnu dot org>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Date: Mon, 02 Jun 2014 16:52:28 +0200
- Subject: Re: [GSoC] decision tree first steps
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsAXoGY+hbH=LpVAB2MmV+6HnfZpQ7jbWkAN7MzQR7Qc+Q at mail dot gmail dot com> <87a99v1pf1 dot fsf at inria dot fr> <CAFiYyc1AXsMeK+Kxk2DeURQVx1uprcLHZR5z3RQaNRO-BDSVTQ at mail dot gmail dot com>
Richard Biener <richard.guenther@gmail.com> skribis:
> (match-and-simplify
> (bit_and @0 integer_zerop@1)
> @1)
> (match-and-simplify
> (bit_and @0 integer_all_onesp@1)
> @0)
>
> is IMHO easier to parse while your version more like matches
> what the code generator creates.
Ah yes, the ability to specify predicates for pattern variables as above
is even better (and nicer than the examples that use inline C conditionals.)
Thanks,
Ludoâ.