[BranchProbability] Delete a redundant overflow check

llvm-svn: 363492
This commit is contained in:
Fangrui Song 2019-06-15 10:09:59 +00:00
parent 077f13c612
commit b6dc09e725
1 changed files with 0 additions and 4 deletions

View File

@ -88,10 +88,6 @@ static uint64_t scale(uint64_t Num, uint32_t N, uint32_t D) {
// Carry.
Upper32 += Mid32 < Mid32Partial;
// Check for overflow.
if (Upper32 >= D)
return UINT64_MAX;
uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32;
uint64_t UpperQ = Rem / D;