[llvm] [MemProf] Summary section cleanup (NFC) (PR #142003)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 11:44:12 PDT 2025
================
@@ -618,12 +618,10 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) {
if (static_cast<bool>(ProfileKind & InstrProfKind::MemProf)) {
MemProfSectionStart = OS.tell();
- // Get the finalized MemProf summary that was built when adding records.
- auto MemProfSum = MemProfSumBuilder.getSummary();
-
- if (auto E = writeMemProf(
- OS, MemProfData, MemProfVersionRequested, MemProfFullSchema,
- std::move(DataAccessProfileData), MemProfSum.get()))
+ if (auto E =
+ writeMemProf(OS, MemProfData, MemProfVersionRequested,
+ MemProfFullSchema, std::move(DataAccessProfileData),
+ std::move(MemProfSumBuilder.getSummary())))
----------------
teresajohnson wrote:
done
https://github.com/llvm/llvm-project/pull/142003
More information about the llvm-commits
mailing list