[llvm] [MemProf] Add dot graph dumping immediately after stack node update (PR #143025)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 13:31:19 PDT 2025


================
@@ -6,11 +6,20 @@
 ; REQUIRES: asserts
 
 ; RUN: opt -passes=memprof-context-disambiguation -supports-hot-cold-new \
+; RUN:	-memprof-export-to-dot -memprof-dot-file-path-prefix=%t. \
 ; RUN:  -stats -debug %s -S 2>&1 | FileCheck %s --check-prefix=STATS \
 ; RUN:  --check-prefix=IR --check-prefix=DEBUG
 
 ; DEBUG: Not found through unique tail call chain: _Z3barv from main that actually called xyz (found multiple possible chains)
 
+;; Graph fixup should have nulled the call in the node that could not be
+;; resolved via tail call fixup. That happens in between the initial
+;; stack update and the end of graph building.
----------------
snehasish wrote:

nit: "and at the end"?

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


More information about the llvm-commits mailing list