[PATCH] D132601: [llvm-profdata] Improve profile supplementation

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 09:32:31 PDT 2022


xur added inline comments.


================
Comment at: llvm/lib/ProfileData/InstrProf.cpp:736
+
+  for (size_t I = Start, E = Other.Counts.size(); I < E; ++I) {
     bool Overflowed;
----------------
davidxl wrote:
> should this loop be skipped for pseudo kind?
Yes. We can skip this loop for pesudo kind as the value will not be used. 


================
Comment at: llvm/lib/ProfileData/ProfileSummaryBuilder.cpp:234
 void InstrProfSummaryBuilder::addInternalCount(uint64_t Count) {
-  // Skip invalid count.
-  if (Count == (uint64_t)-1)
-    return;
-
   addCount(Count);
   if (Count > MaxInternalBlockCount)
----------------
davidxl wrote:
> add assert on count value (not pseudo values).
Ack.


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

https://reviews.llvm.org/D132601



More information about the llvm-commits mailing list