diff options
Diffstat (limited to 'contrib/llvm/lib/Support/BranchProbability.cpp')
-rw-r--r-- | contrib/llvm/lib/Support/BranchProbability.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/contrib/llvm/lib/Support/BranchProbability.cpp b/contrib/llvm/lib/Support/BranchProbability.cpp index 31dee9561f49..195e2d58d8e1 100644 --- a/contrib/llvm/lib/Support/BranchProbability.cpp +++ b/contrib/llvm/lib/Support/BranchProbability.cpp @@ -1,9 +1,8 @@ //===-------------- lib/Support/BranchProbability.cpp -----------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // @@ -89,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; |