summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/test-ret.ll
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-02-18 09:24:53 +0000
committerOwen Anderson <resistor@mac.com>2008-02-18 09:24:53 +0000
commit3549553262773f65ae7a6ffa9ee29535d23f4e81 (patch)
tree9baedbc6cfd3e414e039afa5ad88244456427c5e /llvm/test/ExecutionEngine/test-ret.ll
parenta54570d2d2797a7a8ab33a96592232a95416eccc (diff)
downloadbcm5719-llvm-3549553262773f65ae7a6ffa9ee29535d23f4e81.tar.gz
bcm5719-llvm-3549553262773f65ae7a6ffa9ee29535d23f4e81.zip
Add support to GVN for performing sret return slot optimization. This means that, if an sret function tail calls
another sret function, it should pass its own sret parameter to the tail callee, allowing it to fill in the correct return value. llvm-gcc does not emit this by default. Instead, it allocates space in the caller for the sret of the tail call and then uses memcpy to copy the result into the caller's sret parameter. This optimization detects and optimizes that case. llvm-svn: 47265
Diffstat (limited to 'llvm/test/ExecutionEngine/test-ret.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud