[llvm] [llvm-cov] Option to ignore hash mismatches for non-emitted symbols (PR #97574)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 15:59:20 PDT 2024


================
@@ -1501,6 +1506,11 @@ Expected<InstrProfRecord> IndexedInstrProfReader::getInstrProfRecord(
   }
   // Found it. Look for counters with the right hash.
 
+  // Ignore possible hash mismatch if hash is 0.
+  if (IgnoreEmptyHashMismatches && FuncHash == 0x0 && Data.size() == 1) {
----------------
chapuni wrote:

Could you explain how it works for the function with **actually zero** hash value?

https://github.com/llvm/llvm-project/pull/97574


More information about the llvm-commits mailing list