[PATCH] D40697: Cache modulo values for the .gnu.hash section.
Joerg Sonnenberger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 07:34:18 PST 2017
joerg added a comment.
Instead of computing and storing the modulus directly, it is likely better to precompute the inverse and use that to improve the performance of the operation in first place. Consider using fast_remainder32 <https://bitbucket.org/netbsd/src/src/186da2a4e05b898f94827ca5f9d77b3cd5902a6f/sys/sys/bitops.h?at=trunk&fileviewer=file-view-default#bitops.h-264> and associated functions.
https://reviews.llvm.org/D40697
More information about the llvm-commits
mailing list