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

Jessica Paquette via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 18:40:00 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) {
----------------
ornata wrote:

Could you add a testcase for this?

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


More information about the llvm-commits mailing list