1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc

Differential Revision: https://reviews.llvm.org/D98982
This commit is contained in:
Ellis Hoag 2021-03-19 16:24:16 -07:00 committed by Fangrui Song
parent 263720c0fc
commit 434b17dd9a

View File

@ -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