This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42720] Problematic condition simplification logic at unswitch-loops pass
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2010 00:05:28 -0000
- Subject: [Bug tree-optimization/42720] Problematic condition simplification logic at unswitch-loops pass
- References: <bug-42720-17567@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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