[PATCH] D107800: [CSSPGO][llvm-profgen] Cap context stack to reduce memory usage

Sergey Pupyrev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 11 13:54:32 PDT 2021


spupyrev added inline comments.


================
Comment at: llvm/tools/llvm-profgen/ProfileGenerator.cpp:73
 
+int CSProfileGenerator::MaxContextDepth = -1;
+
----------------
The default value of "no trimming" sounds strange to me. Do we know if trimming may affect performance? If yes, we shouldn't trim. If no, we should have a reasonable bound here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107800



More information about the llvm-commits mailing list