aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-04-09 15:21:24 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-04-15 18:38:50 -0500
commit1b34b84ddd666a30b0e7e18177997bab32e826b7 (patch)
treea06eeff01f68fae0b4fa9198a8330e1b174b4823 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent7ec8d79385cfb47a4fc1ae00ee01d19d52d7fba6 (diff)
downloadllvm-1b34b84ddd666a30b0e7e18177997bab32e826b7.zip
llvm-1b34b84ddd666a30b0e7e18177997bab32e826b7.tar.gz
llvm-1b34b84ddd666a30b0e7e18177997bab32e826b7.tar.bz2
[CallGraphUpdater] Update the ExternalCallingNode for node replacements
Summary: While it is uncommon that the ExternalCallingNode needs to be updated, it can happen. It is uncommon because most functions listed as callees have external linkage, modifying them is usually not allowed. That said, there are also internal functions that have, or better had, their "address taken" at construction time. We conservatively assume various uses cause the address "to be taken". Furthermore, the user might have become dead at some point. As a consequence, transformations, e.g., the Attributor, might be able to replace a function that is listed as callee of the ExternalCallingNode. Since there is no function corresponding to the ExternalCallingNode, we did just remove the node from the callee list if we replaced it (so far). Now it would be preferable to replace it if needed and remove it otherwise. However, removing the node has implications on the CGSCC iteration. Locally, that caused some other nodes to be never visited but it is for sure possible other (bad) side effects can occur. As it seems conservatively safe to keep the new node in the callee list we will do that for now. Reviewers: lebedev.ri, hfinkel, fhahn, probinson, wristow, loladiro, sstefan1, uenoku Subscribers: hiraditya, bollu, uenoku, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77854
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions