Skip to content
  • Hal Finkel's avatar
    Copy noalias metadata from call sites to inlined instructions · 61c38612
    Hal Finkel authored
    When a call site with noalias metadata is inlined, that metadata can be
    propagated directly to the inlined instructions (only those that might access
    memory because it is not useful on the others). Prior to inlining, the noalias
    metadata could express that a call would not alias with some other memory
    access, which implies that no instruction within that called function would
    alias. By propagating the metadata to the inlined instructions, we preserve
    that knowledge.
    
    This should complete the enhancements requested in PR20500.
    
    llvm-svn: 215676
    61c38612
Loading