Re: Move expN folds to match.pd

2015-10-26 Thread Richard Biener
On Mon, Oct 26, 2015 at 11:32 AM, Marc Glisse wrote: > On Mon, 26 Oct 2015, Richard Sandiford wrote: > >> + /* expN(logN(x)) -> x. */ >> + (simplify >> + (exps (logs @0)) >> + @0)) > > > We are not very consistent about it, but wasn't there an idea that we should > use non_lvalue in most su

Re: Move expN folds to match.pd

2015-10-26 Thread Marc Glisse
On Mon, 26 Oct 2015, Richard Sandiford wrote: + /* expN(logN(x)) -> x. */ + (simplify + (exps (logs @0)) + @0)) We are not very consistent about it, but wasn't there an idea that we should use non_lvalue in most such places? -- Marc Glisse

Re: Move expN folds to match.pd

2015-10-26 Thread Richard Biener
On Mon, Oct 26, 2015 at 10:50 AM, Richard Sandiford wrote: > Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. > OK to install? Ok. Thanks, Richard. > Thanks, > Richard > > > gcc/ > * builtins.c (fold_builtin_exponent): Delete. > (fold_builtin_2): Handle const