[llvm-branch-commits] [clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

Prabhu Rajasekaran via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 17 19:47:44 PDT 2025


================
@@ -3423,6 +3424,17 @@ static void combineMetadata(Instruction *K, const Instruction *J,
                    MDNode::getMergedCallsiteMetadata(KCallSite, JCallSite));
   }
 
+  // Merge callee_type metadata.
+  // Handle separately to support cases where only one instruction has the
+  // metadata.
----------------
Prabhuk wrote:

Interesting question. My assumption here is that the callee operand of the merged call instructions are the same. Assuming that is correct, presence of at least one callee_type metadata guarantees what the type of the intended callee must be. 

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


More information about the llvm-branch-commits mailing list