[PATCH] D63078: [ThinLTO][Bitcode] Add 'entrycount' to FS_COMBINED_PROFILE. NFC

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 08:22:58 PDT 2019


evgeny777 created this revision.
evgeny777 added reviewers: tejohnson, eraman, steven_wu.
Herald added subscribers: dexonsmith, inglorion.

This field has been missing from abbreviation for a while, however things still work because abbreviation has array field at the end. I don't see how this can be tested unless llvm-bcanalyzer is taught to dump abbreviations.


https://reviews.llvm.org/D63078

Files:
  lib/Bitcode/Writer/BitcodeWriter.cpp


Index: lib/Bitcode/Writer/BitcodeWriter.cpp
===================================================================
--- lib/Bitcode/Writer/BitcodeWriter.cpp
+++ lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -3854,6 +3854,7 @@
   Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6));   // flags
   Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 8));   // instcount
   Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 4));   // fflags
+  Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 8));   // entrycount
   Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 4));   // numrefs
   Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 4));   // immutablerefcnt
   // numrefs x valueid, n x (valueid, hotness)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63078.203796.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190610/d8eb4d1c/attachment.bin>


More information about the llvm-commits mailing list