Re: [PATCH] PR middle-end/100810: Penalize IV candidates with undefined value bases

2021-08-31 Thread Richard Biener via Gcc-patches
On Tue, Aug 31, 2021 at 8:22 AM Roger Sayle wrote: > > > Time to hopefully earn some goodwill from the team; this patch fixes > a P1 wrong-code-on-valid regression in ivopts. Many thanks to Andrew > Pinski for help with the analysis. > > Consider the code fragment below: > > int i; >

[PATCH] PR middle-end/100810: Penalize IV candidates with undefined value bases

2021-08-30 Thread Roger Sayle
Time to hopefully earn some goodwill from the team; this patch fixes a P1 wrong-code-on-valid regression in ivopts. Many thanks to Andrew Pinski for help with the analysis. Consider the code fragment below: int i; for (j=0; j<10; j++) i++; This results in a loop conta