[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2021-08-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2021-08-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment #

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2021-01-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0bd675183d94e6bca100c3aaaf87ee9676fb3c26 commit r11-5958-g0bd675183d94e6bca100c3aaaf87ee9676fb3c26 Author: Jakub Jelinek Date: Sa

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #6 from Jakub Jelinek --- Created attachment 49745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49745&action=edit gcc11-pr96685.patch Updated patch.

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #5 from Jakub Jelinek --- Ok, so for GENERIC it seems to be the associate: in fold_binary_loc that converts ~x + y created by this patch into (y - x) + 1, and we don't have an equivalent for that in GIMPLE. So, shall I restrict this

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #4 from Jakub Jelinek --- Though, there is some canonicalization problem GENERIC vs. GIMPLE: unsigned f1 (unsigned x, unsigned y) { unsigned int r = (x - y); return ~r; } unsigned f2 (unsigned x, unsigned y) { unsigned int r =

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #3 from Jakub Jelinek --- Created attachment 49742 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49742&action=edit gcc11-pr96685.patch Untested fix.

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-08-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Target|