[llvm] [llvm-profgen] Set ContextWasInlined for probeless nodes (PR #191600)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 12:00:22 PDT 2026


================
@@ -80,6 +82,10 @@ class ContextTrieNode {
 
   // Callsite location in parent context
   LineLocation CallSiteLoc;
+
+  // Whether this function was inlined at this context in the binary.
+  // Set from the probe inline tree during profile generation.
+  bool WasInlined = false;
----------------
HighW4y2H3ll wrote:

If we could just update the attribute in the same `getContextNodeForLeafProbe` function, do we still need an extra flag in the `ContextTrieNode`?

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


More information about the llvm-commits mailing list