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

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 11:40:35 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) {
----------------
minglotus-6 wrote:

The check is verbose. I removed it.

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


More information about the llvm-commits mailing list