Re: [match-and-simplify] add new lower function

2014-10-24 Thread Richard Biener
On Thu, Oct 23, 2014 at 11:22 AM, Prathamesh Kulkarni wrote: > Instead of iterating each time for calling lowering function > (lower_opt_convert, etc.), > add new lower function and pass lower_opt_convert, lower_for etc. to > it as callback. I don't think this is more readable. Thanks, Richard.

[match-and-simplify] add new lower function

2014-10-23 Thread Prathamesh Kulkarni
Instead of iterating each time for calling lowering function (lower_opt_convert, etc.), add new lower function and pass lower_opt_convert, lower_for etc. to it as callback. * genmatch.c (lower): New overloaded function. (lower): Adjust to call overloaded lower. Thanks, Prathamesh Index: gcc/g