Re: More fold_negate in match.pd

2017-11-07 Thread Richard Biener
On Sat, Nov 4, 2017 at 10:58 AM, Marc Glisse wrote: > Hello, > > this copies some more transformations from fold_negate_expr to match.pd. > Mostly, I wanted to add (negate (pointer_diff @0 @1)), and couldn't find the > corresponding transformation with minus_expr... We can see about > generalizing

More fold_negate in match.pd

2017-11-04 Thread Marc Glisse
Hello, this copies some more transformations from fold_negate_expr to match.pd. Mostly, I wanted to add (negate (pointer_diff @0 @1)), and couldn't find the corresponding transformation with minus_expr... We can see about generalizing a bit with conversions later, I wanted to have something at