summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-09-09 12:40:47 +0000
committerDuncan Sands <baldrick@free.fr>2008-09-09 12:40:47 +0000
commitc189e794409f7dcb0099a6692450f2c11818b74d (patch)
treef63968fadd039d4bf9600a1633bf4ef53900a07e /llvm/lib/CodeGen/BranchFolding.cpp
parent03849a2c5b8cb5e9e72c8f80f5ee1ca8c429836e (diff)
downloadbcm5719-llvm-c189e794409f7dcb0099a6692450f2c11818b74d.tar.gz
bcm5719-llvm-c189e794409f7dcb0099a6692450f2c11818b74d.zip
Correct callgraph construction. It has two problems:
(1) code left over from the days of ConstantPointerRef: if a use of a function is a GlobalValue then that is not considered a reason to add an edge from the external node, even though the use may be as an initializer for an externally visible global! There might be some point to this behaviour when the use is by an alias (though the code predated aliases by some centuries), but I think PR2782 is a better way of handling that. (2) If function F calls function G, and also G is a parameter to the call, then an F->G edge is not added to the callgraph. While this doesn't seem to matter much, adding such an edge makes the callgraph more regular. In addition, the new code should be faster as well as simpler. llvm-svn: 55987
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud