Re: [PATCH][match-and-simplify] User defined predicates

2014-09-22 Thread Richard Biener
On Tue, 16 Sep 2014, Marc Glisse wrote: > On Tue, 16 Sep 2014, Richard Biener wrote: > > > The following adds the ability to write predicates using patterns > > with an example following negate_expr_p which already has a > > use in comparison folding (via its if c-expr). > > > > The syntax is as

Re: [PATCH][match-and-simplify] User defined predicates

2014-09-16 Thread Marc Glisse
On Tue, 16 Sep 2014, Richard Biener wrote: The following adds the ability to write predicates using patterns with an example following negate_expr_p which already has a use in comparison folding (via its if c-expr). The syntax is as follows: (match negate_expr_p INTEGER_CST (if (TYPE_OVERFLOW_