forked from OSchip/llvm-project
[APInt] Remove 'else' after 'return' in tcMultiply methods. NFC
llvm-svn: 302406
This commit is contained in:
parent
9bcaed867a
commit
a6c142ab4d
|
@ -2311,7 +2311,8 @@ int APInt::tcMultiplyPart(WordType *dst, const WordType *src,
|
|||
assert(i + 1 == dstParts);
|
||||
dst[i] = carry;
|
||||
return 0;
|
||||
} else {
|
||||
}
|
||||
|
||||
/* We overflowed if there is carry. */
|
||||
if (carry)
|
||||
return 1;
|
||||
|
@ -2326,7 +2327,6 @@ int APInt::tcMultiplyPart(WordType *dst, const WordType *src,
|
|||
|
||||
/* We fitted in the narrow destination. */
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* DST = LHS * RHS, where DST has the same width as the operands and
|
||||
|
@ -2355,9 +2355,9 @@ unsigned APInt::tcFullMultiply(WordType *dst, const WordType *lhs,
|
|||
const WordType *rhs, unsigned lhsParts,
|
||||
unsigned rhsParts) {
|
||||
/* Put the narrower number on the LHS for less loops below. */
|
||||
if (lhsParts > rhsParts) {
|
||||
if (lhsParts > rhsParts)
|
||||
return tcFullMultiply (dst, rhs, lhs, rhsParts, lhsParts);
|
||||
} else {
|
||||
|
||||
assert(dst != lhs && dst != rhs);
|
||||
|
||||
tcSet(dst, 0, rhsParts);
|
||||
|
@ -2368,7 +2368,6 @@ unsigned APInt::tcFullMultiply(WordType *dst, const WordType *lhs,
|
|||
unsigned n = lhsParts + rhsParts;
|
||||
|
||||
return n - (dst[n - 1] == 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* If RHS is zero LHS and REMAINDER are left unchanged, return one.
|
||||
|
|
Loading…
Reference in New Issue