This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GSoC] decision tree first steps


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â.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]