Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 1:09 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford >> wrote: >>> Index: gcc/tree-data-ref.c >>>

Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Sandiford
Richard Biener writes: > On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford > wrote: >> Index: gcc/tree-data-ref.c >> === >> --- gcc/tree-data-ref.c 2018-02-02

Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Biener
On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford wrote: > This patch is part 2 of the fix for PR 81635. It means that > split_constant_offset can handle loops like: > > for (unsigned int i = 0; i < n; i += 4) > { > a[i] = ...; > a[i + 1] = ...; >

Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-02 Thread Richard Sandiford
This patch is part 2 of the fix for PR 81635. It means that split_constant_offset can handle loops like: for (unsigned int i = 0; i < n; i += 4) { a[i] = ...; a[i + 1] = ...; } CCP records that "i" must have its low 2 bits clear, but we don't include this information in