aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-10-24 07:16:24 -0700
committerCraig Topper <craig.topper@sifive.com>2022-10-24 10:08:50 -0700
commit1fa8fd4c33cbb6bcf473c36f179640e2a8b4dd32 (patch)
tree4a2f042cfb09d8674ffe4242c06528537013031b /llvm/tools/llvm-readobj/llvm-readobj.cpp
parentda4baa9ebe76c6ed405424a80b582473904a185e (diff)
downloadllvm-1fa8fd4c33cbb6bcf473c36f179640e2a8b4dd32.zip
llvm-1fa8fd4c33cbb6bcf473c36f179640e2a8b4dd32.tar.gz
llvm-1fa8fd4c33cbb6bcf473c36f179640e2a8b4dd32.tar.bz2
Recommit "[TargetLowering][RISCV][X86] Support even divisors in expandDIVREMByConstant."
This reverts commit 65aaecca8842dec30d03734a7fe8ce33c5afec81. There was an ordering problem in the calculation of the partial remainder. Original commit message: If the divisor is even, we can first shift the dividend and divisor right by the number of trailing zeros. Now the divisor is odd and we can do the original algorithm to calculate a remainder. Then we shift that remainder left by the number of trailing zeros and add the bits that were shifted out of the dividend. Differential Revision: https://reviews.llvm.org/D135541
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions