projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bbae50
)
[APInt] Remove check for single word since single word was handled earlier in the...
author
Craig Topper
<craig.topper@gmail.com>
Wed, 10 May 2017 18:15:14 +0000
(18:15 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Wed, 10 May 2017 18:15:14 +0000
(18:15 +0000)
llvm-svn: 302701
llvm/lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/APInt.cpp
b/llvm/lib/Support/APInt.cpp
index
c4be405
..
7559e46
100644
(file)
--- 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;