[Bug tree-optimization/114204] Missed optimization: -(a*!a) => 0 when a=-b-c

2024-03-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114204 --- Comment #2 from Andrew Pinski --- ``` int f(int a, int b) { if (a == -b) return a + b; return 0; } int f1(int a, int b) { if (a == b) return a - b; return 0; } ``` Should be both handled

[Bug tree-optimization/114204] Missed optimization: -(a*!a) => 0 when a=-b-c

2024-03-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114204 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|