https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93328
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2020-01-20 Component|rtl-optimization |tree-optimization Version|unknown |10.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- The bswap pass doesn't handle multiplication or plus, if you write your function using shifts and bitwise or we can optimize it. Not to difficult to teach the pass the other forms I guess and a canonicalization opportunity as well (as usual integer promotion rules make things complicated).