summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
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 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
parent28ec3460e4320743c5f78b1550b72720007b339a (diff)
downloadbcm5719-llvm-9900d18bab2075ae99884e4faef1243980fa4bce.tar.gz
bcm5719-llvm-9900d18bab2075ae99884e4faef1243980fa4bce.zip
[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 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud