Re: [PATCH] Fix PR78847

2017-04-21 Thread Richard Biener
On Thu, 9 Feb 2017, Richard Biener wrote: > > The following patch fixes a missed optimization caused by niter analysis > returning a complex pointer subtraction expression instead of a constant > for a loop with a pointer IV (it looks like pointer IVs are quite common > in libstdc++). > > Bootst

[PATCH] Fix PR78847

2017-02-09 Thread Richard Biener
The following patch fixes a missed optimization caused by niter analysis returning a complex pointer subtraction expression instead of a constant for a loop with a pointer IV (it looks like pointer IVs are quite common in libstdc++). Bootstrapped and tested on x86_64-unknown-linux-gnu. Not a reg