mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[APInt] Remove check for single word since single word was handled earlier in the function. NFC
llvm-svn: 302701
This commit is contained in:
parent
8ecd061605
commit
8afca05207
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user