This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GSoC][match-and-simplify] use integral_op_p
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Date: Mon, 14 Jul 2014 14:14:13 +0200
- Subject: Re: [GSoC][match-and-simplify] use integral_op_p
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsBuhPvYVRV5_=1aJXLwisqiGK48A3hHvvHNZY1ywhsdvQ at mail dot gmail dot com>
On Sun, Jul 13, 2014 at 7:23 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Hi,
> This patch uses integral_op_p instead of
> if (INTEGRAL_TYPE_P (TREE_TYPE (@0)))
>
> * match.pd: Remove INTEGRAL_TYPE_P (TREE_TYPE (@0)) in bitwise
> patterns and use integral_op_p@0
Hmm, so this removes if-exprs and instead uses predicates in the match.
That's probably good as then multiple evaluations of the same predicate
can be avoided in case multiple patterns share the same bit in the
decision tree.
Applied.
Thanks,
Richard.
> Thanks and Regards,
> Prathamesh