[Bug tree-optimization/98909] Failure to optimize odd loop pattern

2024-06-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98909 --- Comment #3 from Andrew Pinski --- Note this is very similar to PR 112104, in that `~a` can be treated as `a ^ -1`.

[Bug tree-optimization/98909] Failure to optimize odd loop pattern

2021-07-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98909 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/98909] Failure to optimize odd loop pattern

2021-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98909 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-02-02 Status|UNCONFIRM

[Bug tree-optimization/98909] Failure to optimize odd loop pattern

2021-02-01 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98909 --- Comment #1 from Gabriel Ravier --- PS: The same pattern with `unsigned` replacing `int` can be optimized to `return x & 1;` (done by LLVM, but not by GCC).