aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-08-29 21:42:08 +0000
committerReid Kleckner <reid@kleckner.net>2014-08-29 21:42:08 +0000
commit16e5541211b527b4403f471834e890c7ce82a49d (patch)
tree28e912f0f187377cbde6f05edefc9d378249a198 /llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
parent329d4a2b292ec19e2bb0eeb03889c7a6757e137d (diff)
downloadllvm-16e5541211b527b4403f471834e890c7ce82a49d.zip
llvm-16e5541211b527b4403f471834e890c7ce82a49d.tar.gz
llvm-16e5541211b527b4403f471834e890c7ce82a49d.tar.bz2
musttail: Forward regparms of variadic functions on x86_64
Summary: If a variadic function body contains a musttail call, then we copy all of the remaining register parameters into virtual registers in the function prologue. We track the virtual registers through the function body, and add them as additional registers to pass to the call. Because this is all done in virtual registers, the register allocator usually gives us good code. If the function does a call, however, it will have to spill and reload all argument registers (ew). Forwarding regparms on x86_32 is not implemented because most compilers don't support varargs in 32-bit with regparms. Reviewers: majnemer Subscribers: aemerson, llvm-commits Differential Revision: http://reviews.llvm.org/D5060 llvm-svn: 216780
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionNormalization.cpp')
0 files changed, 0 insertions, 0 deletions