[Bug middle-end/94783] Abs-equivalent pattern is not recognized as abs

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 27 14:03:31 GMT 2020


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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It can be optimized even to ABS_EXPR, because if v is INT_MIN, mask will be -1
and so v + -1 will be UB.


More information about the Gcc-bugs mailing list