Re: [PATCH PR34114/1]More multiple_of_p cases.

2016-07-29 Thread Bin.Cheng
On Fri, Jul 29, 2016 at 4:50 PM, Jeff Law wrote: > On 07/29/2016 09:35 AM, Bin Cheng wrote: >> >> Hi, >> This is prerequisite patch for fixing PR34114 which reveals a weakness of >> GCC in analyzing niter for loop with NE_EXPR exit condition. For such >> loops, we quite often need to check if del

Re: [PATCH PR34114/1]More multiple_of_p cases.

2016-07-29 Thread Jeff Law
On 07/29/2016 09:35 AM, Bin Cheng wrote: Hi, This is prerequisite patch for fixing PR34114 which reveals a weakness of GCC in analyzing niter for loop with NE_EXPR exit condition. For such loops, we quite often need to check if delta (final - start) of loop range is multiple of IV's step. Th

[PATCH PR34114/1]More multiple_of_p cases.

2016-07-29 Thread Bin Cheng
Hi, This is prerequisite patch for fixing PR34114 which reveals a weakness of GCC in analyzing niter for loop with NE_EXPR exit condition. For such loops, we quite often need to check if delta (final - start) of loop range is multiple of IV's step. This patch proves multiple_of_p (top, bottom)