https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94804
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Gabriel Ravier from comment #3) > Having similar problems with useless movs is from the same non > well-optimized register allocation on function boundaries ? I don't know, but possibly not. I'll shut up because I am not a RA specialist... (and if you expect to see it optimized to bswap64, then obviously it is unrelated to register allocation)