https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487
--- Comment #3 from Richard Biener ---
Feels more like reassoc to me. You could also view it as "bit-DCE", eliding
defs of dead bits. Which might make it suitable for backprop (currently
doing sth similar for the sign "bit").
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487
--- Comment #2 from XChy ---
I may miss something here... Apart from this one, it seems that GCC doesn't
simplify **one-use** instruction based on demanded bits too:
https://godbolt.org/z/67bYxd8hY
But LLVM indeed handle the one-use case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2024-01-18
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487
Andrew Pinski changed:
What|Removed |Added
Keywords||missed-optimization