https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82854
--- Comment #3 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #2)
> /* 0 - (x & 0x8000) -> x & 0x8000 */
> LLVM does
Actually RTL has done this since at least GCC 4.1.0, most likely before.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82854
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82854
Andrew Pinski changed:
What|Removed |Added
Keywords||missed-optimization
Severity|n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82854
--- Comment #1 from Andi Kleen ---
Also I suppose a lot of them could be generalized to 8/16/64bit.