mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-14 05:20:30 +00:00
[BranchProbability] Delete a redundant overflow check
llvm-svn: 363492
This commit is contained in:
parent
c334a9e7fa
commit
ae9b5d79fc
@ -88,10 +88,6 @@ static uint64_t scale(uint64_t Num, uint32_t N, uint32_t D) {
|
|||||||
// Carry.
|
// Carry.
|
||||||
Upper32 += Mid32 < Mid32Partial;
|
Upper32 += Mid32 < Mid32Partial;
|
||||||
|
|
||||||
// Check for overflow.
|
|
||||||
if (Upper32 >= D)
|
|
||||||
return UINT64_MAX;
|
|
||||||
|
|
||||||
uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32;
|
uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32;
|
||||||
uint64_t UpperQ = Rem / D;
|
uint64_t UpperQ = Rem / D;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user