aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-04-13 21:43:21 +0000
committerMatthias Braun <matze@braunis.de>2016-04-13 21:43:21 +0000
commit588d1cdad486dcddd8fe410bdc6e7080c1cfdbdd (patch)
treeda934bd2e6a7fc1bc49bfbb57956548b4bffa70b /clang/lib/CodeGen/CodeGenModule.cpp
parent74a0bd319ad9a6bca95684d4c87851e4583725e9 (diff)
downloadllvm-588d1cdad486dcddd8fe410bdc6e7080c1cfdbdd.zip
llvm-588d1cdad486dcddd8fe410bdc6e7080c1cfdbdd.tar.gz
llvm-588d1cdad486dcddd8fe410bdc6e7080c1cfdbdd.tar.bz2
X86: Use a callee save register for the swiftself parameter.
It is very likely that the swiftself parameter is alive throughout most functions function so putting it into a callee save register should avoid spills for the callers with only a minimum amount of extra spills in the callees. Currently the generated code is correct but unnecessarily spills and reloads arguments passed in callee save registers, I will address this in upcoming patches. This also adds a missing check that for tail calls the preserved value of the caller must be the same as the callees parameter. Differential Revision: http://reviews.llvm.org/D18902 llvm-svn: 266252
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions