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

2024-02-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

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

2017-11-28 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194 --- Comment #3 from joseph at codesourcery dot com --- You definitely cannot assume strcmp (s, t) == -strcmp (t, s), only that the result has the correct sign in each case. There should be no need to preserve the exact return value (of the

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

2017-11-28 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194 --- Comment #2 from Marc Glisse --- What if strcmp returns INT_MIN?

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

2017-11-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83194 Richard Biener changed: What|Removed |Added Keywords||missed-optimization