Re: Make more use of simplify_gen_binary

2017-09-20 Thread Richard Biener
On September 20, 2017 2:30:53 PM GMT+02:00, Richard Sandiford wrote: >This patch replaces various places that previously used: > > if (GET_CODE (y) == CONST_INT) >... plus_constant (..., x, [-]INTVAL (y)) ... > else >... gen_rtx_PLUS/MINUS (..., x, y) ... > >with single calls to simplif

Make more use of simplify_gen_binary

2017-09-20 Thread Richard Sandiford
This patch replaces various places that previously used: if (GET_CODE (y) == CONST_INT) ... plus_constant (..., x, [-]INTVAL (y)) ... else ... gen_rtx_PLUS/MINUS (..., x, y) ... with single calls to simplify_gen_binary. This allows them to handle polynomial integers as well as consta