[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2022-01-13 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 Andrew Macleod changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2022-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 --- Comment #5 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:27e4260166950b784fe270ba4f0cae9a66faf1c4 commit r12-6558-g27e4260166950b784fe270ba4f0cae9a66faf1c4 Author: Andrew MacLeod Date:

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2022-01-11 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 --- Comment #4 from Andrew Macleod --- The IL generated is: _1 = x_2(D) >> y_3(D); _4 = _1 <= x_2(D); return _4; All that should be needed is for the right shift operator in range-ops to implement lhs_op1_relation() to indicate that if

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2021-01-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 --- Comment #3 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #2) > I think another case for ranger symbolic ranges? indeed.

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com,

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

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

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2020-08-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2020-08-19 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 --- Comment #1 from Gabriel Ravier --- PS: This transformation can also be done with a very similar pattern where the return statement is replaced with this : `return (x / y) <= x;`