[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-08 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ff33680165346cb291667f38dd2e9f25a74cc3c3 commit r11-193-gff33680165346cb291667f38dd2e9f25a74cc3c3 Author: Jakub Jelinek Date:

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-06 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 --- Comment #5 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:7c2879301d3b027a1ba427a5d5c7557decb8a7ab commit r11-145-g7c2879301d3b027a1ba427a5d5c7557decb8a7ab Author: Uros Bizjak Date: Wed

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 --- Comment #4 from Jakub Jelinek --- Created attachment 48467 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48467=edit gcc11-pr94913.patch Untested fix for that part.

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-05 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 Uroš Bizjak changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-05 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 --- Comment #2 from Uroš Bizjak --- Created attachment 48458 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48458=edit Prototype patch Prototype patch for missed optimization, described in Comment #0. Following testcase: --cut here--

[Bug tree-optimization/94913] Failure to optimize not+cmp into overflow check

2020-05-01 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94913 --- Comment #1 from Gabriel Ravier --- The same thing happens for this code : bool f(unsigned x, unsigned y) { return (x - y - 1) >= x; } LLVM outputs this : f(unsigned int, unsigned int): cmp esi, edi setae al ret GCC outputs this