[Bug tree-optimization/113301] [12/13/14 Regression] Missed optimization: (1/(x+1))/2 => 0 since gcc-12

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 10 17:11:50 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113301

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Even then, I wonder why ranger doesn't figure this out.
(x+1u) <= 2 ? x : 0
must have a range [-1, 1] and [-1, 1] / [2, 2] range should be [0, 0], no?


More information about the Gcc-bugs mailing list