[compiler-rt] [llvm] [TypeProf][InstrPGO] Introduce raw and instr profile format change for type profiling. (PR #81691)

David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 09:37:14 PST 2024


================
@@ -604,6 +608,35 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) {
       OS.writeByte(0);
   }
 
+  // if version >= the version with vtable profile metadata.
+  uint64_t VTableNamesSectionStart = 0;
+  if (IndexedInstrProf::ProfVersion::CurrentVersion >= 12) {
----------------
david-xl wrote:

Is the check needed? Instead add an assertion on the version.

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


More information about the llvm-commits mailing list