[Bug middle-end/111378] Missed optimization for comparing with exact_log2 constants

2024-01-12 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378 --- Comment #5 from Gabriel Ravier --- It does seem as though this transformation is not particularly favorable on most platforms. In fact, it seems as though the opposite transformation (which Clang does on many targets, along with MSVC) would

[Bug middle-end/111378] Missed optimization for comparing with exact_log2 constants

2024-01-12 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378 --- Comment #4 from Jeffrey A. Law --- Whether or not this is an optimization or a pessimization is dependent on the target -- some targets can express the constant trivially in a branch conditions, others can not. Some targets have barrel

[Bug middle-end/111378] Missed optimization for comparing with exact_log2 constants

2023-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Note I thought I saw another bug requesting the same thing but I could not > find it. PR 85234 is mostly requesting the opposite way though ...

[Bug middle-end/111378] Missed optimization for comparing with exact_log2 constants

2023-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Andrew

[Bug middle-end/111378] Missed optimization for comparing with exact_log2 constants

2023-09-12 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378 ktkachov at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1