This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: loop optimizer naivety


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]