loop optimizer naivety
Eric Botcazou
ebotcazou@libertysurf.fr
Tue Sep 23 08:58:00 GMT 2003
> FYI, I've been using the following patch by Jan Hubicka in my local tree:
> http://gcc.gnu.org/ml/gcc-bugs/2003-03/msg01445.html
Thanks for the pointer!
> The patch was intended for PR opt/10185 and possibly PR opt/10087,
> but was never reviewed. As far as I can tell, the testcase in PR
> opt/12340 doesn't segfault when using this patch... Since the patch fixes
> symptoms similar to what you described, I thought it you may be
> interested.
That's indeed exactly the same problem and Jan's patch cures it by
supplementing delete_trivially_dead_insns, which is really dumb.
I see you fixed PR opt/10087 by tweaking the loop optimizer. However, it
still thinks that the biv is incremented twice and that the total increment
is 2, which badly fools the unroller.
--
Eric Botcazou
More information about the Gcc
mailing list