From: Craig Topper Date: Wed, 10 May 2017 18:15:14 +0000 (+0000) Subject: [APInt] Remove check for single word since single word was handled earlier in the... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b97c98e5dcfa09538109d704f6e76307c73abc5b;p=llvm [APInt] Remove check for single word since single word was handled earlier in the function. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302701 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index c4be405152d..7559e46a3c2 100644 --- a/lib/Support/APInt.cpp +++ b/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;