[llvm] d90270e - Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 19 16:24:22 PDT 2021
Author: Ellis Hoag
Date: 2021-03-19T16:24:16-07:00
New Revision: d90270e9e800d22d4d4dca1bfad05d6a491b42f0
URL: https://github.com/llvm/llvm-project/commit/d90270e9e800d22d4d4dca1bfad05d6a491b42f0
DIFF: https://github.com/llvm/llvm-project/commit/d90270e9e800d22d4d4dca1bfad05d6a491b42f0.diff
LOG: Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc
Differential Revision: https://reviews.llvm.org/D98982
Added:
Modified:
llvm/include/llvm/ProfileData/InstrProfData.inc
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/InstrProfData.inc b/llvm/include/llvm/ProfileData/InstrProfData.inc
index 6126a61efb72..ffc7dee4ed6d 100644
--- a/llvm/include/llvm/ProfileData/InstrProfData.inc
+++ b/llvm/include/llvm/ProfileData/InstrProfData.inc
@@ -873,7 +873,7 @@ InstrProfGetRangeRepValue(uint64_t Value) {
return Value;
else
// Otherwise, take to the previous power of two + 1.
- return (1 << (64 - InstProfClzll(Value) - 1)) + 1;
+ return (UINT64_C(1) << (64 - InstProfClzll(Value) - 1)) + 1;
}
/* Return true if the range that an (observed) memop size value belongs to has
More information about the llvm-commits
mailing list