[Bug tree-optimization/83194] Possibly missed simplification with strcmp(s, t) == strcmp(t, s)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 28 09:58:00 GMT 2017


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
                 CC|                            |jsm28 at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Joseph, can functions like strcmp be treated as having "commutative" arguments?
 Or do we need to preserve implementation behavior which as I read the standard
are not required to adhere to strcmp (s, t) == -strcmp (t, s)?


More information about the Gcc-bugs mailing list