Re: [PATCH] Fix PR80275

2017-04-03 Thread Richard Biener
On Tue, 4 Apr 2017, Marc Glisse wrote: > On Tue, 4 Apr 2017, Markus Trippelsdorf wrote: > > > On 2017.04.03 at 11:16 +0200, Richard Biener wrote: > > > > > > The following extends split_address_to_core_and_offset to handle > > > POINTER_PLUS_EXPR to be able to simplify > > > (unsigned long) &MEM

Re: [PATCH] Fix PR80275

2017-04-03 Thread Marc Glisse
On Tue, 4 Apr 2017, Markus Trippelsdorf wrote: On 2017.04.03 at 11:16 +0200, Richard Biener wrote: The following extends split_address_to_core_and_offset to handle POINTER_PLUS_EXPR to be able to simplify (unsigned long) &MEM[(void *)&D.15512 + 12B] - (unsigned long) ((const int *) &D.15512 +

Re: [PATCH] Fix PR80275

2017-04-03 Thread Markus Trippelsdorf
On 2017.04.03 at 11:16 +0200, Richard Biener wrote: > > The following extends split_address_to_core_and_offset to handle > POINTER_PLUS_EXPR to be able to simplify > (unsigned long) &MEM[(void *)&D.15512 + 12B] - (unsigned long) ((const int > *) &D.15512 + 4) which appears during niter analysis.

[PATCH] Fix PR80275

2017-04-03 Thread Richard Biener
The following extends split_address_to_core_and_offset to handle POINTER_PLUS_EXPR to be able to simplify (unsigned long) &MEM[(void *)&D.15512 + 12B] - (unsigned long) ((const int *) &D.15512 + 4) which appears during niter analysis. We seem to have various copies of similar code but refactorin