This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/42720] Problematic condition simplification logic at unswitch-loops pass



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-01-30 00:05 -------
(In reply to comment #3)
> You must set "--param max-unswitch-level=0" to trigger the bug in non-FDO use.
> 

So the problem is really if (optimize_loop_for_size_p (loop)) .  I think you
need to figure out why that is returning true.  I can see why to some extent as
we have a pointer comparison against a NULL pointer; we assume the pointer will
not be null when duplicating the loop.  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42720


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