Re: [wide-int] Avoid some temporaries and use shifts more often

2013-12-01 Thread Richard Biener
Richard Sandiford wrote: >Richard Biener writes: >> Richard Sandiford wrote: >>>This started out as an another attempt to find places where we had >>>things like: >>> >>> offset_int x = wi::to_offset (...); >>> x = ...x...; >>> >>>and change them to: >>> >>> offset_int x = ...wi::to_offset

Re: [wide-int] Avoid some temporaries and use shifts more often

2013-12-01 Thread Richard Sandiford
Richard Biener writes: > Richard Sandiford wrote: >>This started out as an another attempt to find places where we had >>things like: >> >> offset_int x = wi::to_offset (...); >> x = ...x...; >> >>and change them to: >> >> offset_int x = ...wi::to_offset (...)...; >> >>with the get_ref_base

Re: [wide-int] Avoid some temporaries and use shifts more often

2013-11-30 Thread Richard Biener
Richard Sandiford wrote: >This started out as an another attempt to find places where we had >things like: > > offset_int x = wi::to_offset (...); > x = ...x...; > >and change them to: > > offset_int x = ...wi::to_offset (...)...; > >with the get_ref_base_and_extent case being the main one.

[wide-int] Avoid some temporaries and use shifts more often

2013-11-30 Thread Richard Sandiford
This started out as an another attempt to find places where we had things like: offset_int x = wi::to_offset (...); x = ...x...; and change them to: offset_int x = ...wi::to_offset (...)...; with the get_ref_base_and_extent case being the main one. But it turned out that some of them w