Re: VRP: abstract out bitwise AND/OR optimizations

2018-09-04 Thread Richard Biener
On Wed, Aug 29, 2018 at 12:55 PM Aldy Hernandez wrote: > > I thought I was done with this one as well, but it looks like we can > push more things out to wide-int-range.*. > > I also pushed the optimization itself into wide_int_range_bit_{and,or}, > for maximal sharing. > > And finally, I split ou

VRP: abstract out bitwise AND/OR optimizations

2018-08-29 Thread Aldy Hernandez
I thought I was done with this one as well, but it looks like we can push more things out to wide-int-range.*. I also pushed the optimization itself into wide_int_range_bit_{and,or}, for maximal sharing. And finally, I split out getting the mask and the bounds into its own function (wide_int