[PATCH] D118677: [llvm-profgen] Clean up unnecessary memory reservations between phases.

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 09:20:14 PST 2022


wenlei added a comment.

Good change!



================
Comment at: llvm/tools/llvm-profgen/llvm-profgen.cpp:161
   Generator->generateProfile();
+  Reader.release();
   Generator->write();
----------------
nit: using a lexical scope for this purpose might be better. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118677/new/

https://reviews.llvm.org/D118677



More information about the llvm-commits mailing list