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
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 shif
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 ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
--- Comment #2 from Andrew
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111378
ktkachov at gcc dot gnu.org changed:
What|Removed |Added
Ever confirmed|0 |1
Status|UNCON