Re: [57/77] Use scalar_int_mode in expand_expr_addr_expr

2017-08-24 Thread Jeff Law
On 07/13/2017 02:58 AM, Richard Sandiford wrote: > This patch rewrites the condition: > > if (tmode != address_mode && tmode != pointer_mode) > tmode = address_mode; > > to the equivalent: > > tmode == pointer_mode ? pointer_mode : address_mode > > The latter has the advantage that the

[57/77] Use scalar_int_mode in expand_expr_addr_expr

2017-07-13 Thread Richard Sandiford
This patch rewrites the condition: if (tmode != address_mode && tmode != pointer_mode) tmode = address_mode; to the equivalent: tmode == pointer_mode ? pointer_mode : address_mode The latter has the advantage that the result is naturally a scalar_int_mode; a later mechanical patch makes