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

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 13:06:53 PDT 2021


ellis created this revision.
Herald added a subscriber: dberris.
ellis requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fix difference in `InstrProfData.inc` between llvm and compiler-rt.

My understanding is that
`llvm/include/llvm/ProfileData/InstrProfData.inc` and
`compiler-rt/include/profile/InstrProfData.inc` need to stay identical.


Repository:
  rG LLVM Github Monorepo

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.331985.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210319/055579c2/attachment.bin>


More information about the llvm-commits mailing list