This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83194] Possibly missed simplification with strcmp(s, t) == strcmp(t, s)
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Nov 2017 09:58:00 +0000
- Subject: [Bug tree-optimization/83194] Possibly missed simplification with strcmp(s, t) == strcmp(t, s)
- Auto-submitted: auto-generated
- References: <bug-83194-4@http.gcc.gnu.org/bugzilla/>
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)?