diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-10 18:15:14 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-10 18:15:14 +0000 |
commit | 93eabae4aa89d49be3c89b16a7bf8842a64c32c0 (patch) | |
tree | 25ef4bb400ff19e7d28b16f01712ded472ee32a9 /llvm/lib/Support/APInt.cpp | |
parent | 9bbae50d83db2856f0cb27adb16123d2f80a5789 (diff) | |
download | bcm5719-llvm-93eabae4aa89d49be3c89b16a7bf8842a64c32c0.tar.gz bcm5719-llvm-93eabae4aa89d49be3c89b16a7bf8842a64c32c0.zip |
[APInt] Remove check for single word since single word was handled earlier in the function. NFC
llvm-svn: 302701
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index c4be405152d..7559e46a3c2 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -1697,8 +1697,8 @@ void APInt::udivrem(const APInt &LHS, const APInt &RHS, if (lhsWords == 1 && rhsWords == 1) { // There is only one word to consider so use the native versions. - uint64_t lhsValue = LHS.isSingleWord() ? LHS.U.VAL : LHS.U.pVal[0]; - uint64_t rhsValue = RHS.isSingleWord() ? RHS.U.VAL : RHS.U.pVal[0]; + uint64_t lhsValue = LHS.U.pVal[0]; + uint64_t rhsValue = RHS.U.pVal[0]; Quotient = APInt(LHS.getBitWidth(), lhsValue / rhsValue); Remainder = APInt(LHS.getBitWidth(), lhsValue % rhsValue); return; |