https://github.com/gysit commented: Thanks for working on this! I would suggest to introduce a new LLVM struct attribute that bundles all the entry count information into a single struct that can be attached to the function (see my comment). https://github.com/llvm/llvm-project/pull/204707