[Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 4 11:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82418
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Marc, gcc code cannot be "several times" faster, it's likely that your test
measured something else, can you share it?
Clang's approach is also preferable because it doesn't tie up a temporary
register to hold the immediate.
More information about the Gcc-bugs
mailing list