[Bug tree-optimization/45122] [4.6 Regression] -funsafe-loop-optimizations causes FAIL: gcc.c-torture/execute/pr27285.c execution

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 1 11:02:00 GMT 2011


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-01 11:02:44 UTC ---
Ah, the reason why pr19210-* fail is that those loops have non-const/pure call
in it.  So, while single_exit (loop) == exit, loop_only_exit_p (loop, exit)
still returns false.
So, the question is if we really need to give up on -funsafe-loop-optimizations
whenever loop_only_exit_p (loop, exit), or if a single_exit (loop) == exit
test would be sufficient for that.



More information about the Gcc-bugs mailing list