[PATCH] D98982: Sync InstrProfData.inc between llvm and compiler-rt

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 16:24:27 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd90270e9e800: Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc (authored by ellis, committed by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98982/new/

https://reviews.llvm.org/D98982

Files:
  llvm/include/llvm/ProfileData/InstrProfData.inc


Index: llvm/include/llvm/ProfileData/InstrProfData.inc
===================================================================
--- llvm/include/llvm/ProfileData/InstrProfData.inc
+++ llvm/include/llvm/ProfileData/InstrProfData.inc
@@ -873,7 +873,7 @@
     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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98982.332029.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210319/9352d46b/attachment.bin>


More information about the llvm-commits mailing list