[llvm] [ThinLTO] Add tail call flag to call edges in summary (PR #74043)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 13:30:46 PST 2023


================
@@ -4031,21 +4050,20 @@ void ModuleBitcodeWriterBase::writePerModuleFunctionSummaryRecord(
   for (auto &RI : FS->refs())
     NameVals.push_back(VE.getValueID(RI.getValue()));
 
-  bool HasProfileData =
-      F.hasProfileData() || ForceSummaryEdgesCold != FunctionSummary::FSHT_None;
+  bool UseRelBFRecord = WriteRelBFToSummary && !F.hasProfileData() &&
----------------
snehasish wrote:

nit: const

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


More information about the llvm-commits mailing list