[llvm-branch-commits] [clang] [llvm] [llvm] Introduce callee_type	metadata (PR #87573)
    Nikita Popov via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Thu Jun  5 06:18:42 PDT 2025
    
    
  
================
@@ -3377,6 +3377,11 @@ static void combineMetadata(Instruction *K, const Instruction *J,
           K->setMetadata(Kind,
             MDNode::getMostGenericAlignmentOrDereferenceable(JMD, KMD));
         break;
+      case LLVMContext::MD_callee_type:
+        if (!AAOnly)
+          K->setMetadata(Kind, MDNode::getMergedCalleeTypeMetadata(
+                                   K->getContext(), KMD, JMD));
----------------
nikic wrote:
This code appears to be untested. Check out existing metadata tests in SimplifyCFG.
https://github.com/llvm/llvm-project/pull/87573
    
    
More information about the llvm-branch-commits
mailing list