aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-12-28 03:13:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-12-28 03:13:12 +0000
commit9900d18bab2075ae99884e4faef1243980fa4bce (patch)
tree8ddfd1c79b836b5f18f6c7e39a18e28429c318f0 /clang/lib/CodeGen/CodeGenModule.h
parent28ec3460e4320743c5f78b1550b72720007b339a (diff)
downloadllvm-9900d18bab2075ae99884e4faef1243980fa4bce.zip
llvm-9900d18bab2075ae99884e4faef1243980fa4bce.tar.gz
llvm-9900d18bab2075ae99884e4faef1243980fa4bce.tar.bz2
[PM] Teach the inliner's call graph update to handle inserting new edges
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions