[llvm] [MemProf] Handle missing tail call frames (PR #75823)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 15:29:46 PST 2024


================
@@ -104,6 +114,12 @@ static cl::opt<std::string> MemProfImportSummary(
     cl::desc("Import summary to use for testing the ThinLTO backend via opt"),
     cl::Hidden);
 
+static cl::opt<unsigned>
+    TailCallSearchDepth("memprof-tail-call-search-depth", cl::init(5),
----------------
teresajohnson wrote:

Personally I dislike hardcoded thresholds that can't be adjusted at runtime. For debugging and analysis it is sometimes really handy to have a command line flag to change these types of limits. So I'd prefer to keep it as an option for now.

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


More information about the llvm-commits mailing list