diff options
author | Craig Topper <craig.topper@intel.com> | 2020-09-10 06:55:00 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-09-10 08:08:55 -0700 |
commit | f5ad9c2e0ea60dc5426def7a54f04347a33a952e (patch) | |
tree | 72a0651edd0181aacd1beb820cec88c9f96e4242 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 29cecbc5d6fe2ee36635d593171d59eab631639f (diff) | |
download | llvm-f5ad9c2e0ea60dc5426def7a54f04347a33a952e.zip llvm-f5ad9c2e0ea60dc5426def7a54f04347a33a952e.tar.gz llvm-f5ad9c2e0ea60dc5426def7a54f04347a33a952e.tar.bz2 |
[builtins] Write __divmoddi4/__divmodsi4 in terms __udivmod instead of __div and multiply.
Previously we calculating the remainder by multiplying the
quotient and divisor and subtracting from the dividend.
__udivmod can calculate the remainder while calculating the
quotient. We just need to correct the sign afterward.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D87433
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions