Skip to content
  • Chandler Carruth's avatar
    [PM] Teach the inliner's call graph update to handle inserting new edges · 9900d18b
    Chandler Carruth authored
    when they are call edges at the leaf but may (transitively) be reached
    via ref edges.
    
    It turns out there is a simple rule: insert everything as a ref edge
    which is a safe conservative default. Then we let the existing update
    logic handle promoting some of those to call edges.
    
    Note that it would be fairly cheap to make these call edges right away
    if that is desirable by testing whether there is some existing call path
    from the source to the target. It just seemed like slightly more
    complexity in this code path that isn't strictly necessary. If anyone
    feels strongly about handling this differently I'm happy to change it.
    
    llvm-svn: 290649
    9900d18b
Loading