diff options
author | Bjorn Steinbrink <bsteinbr@gmail.com> | 2014-10-16 19:43:08 +0000 |
---|---|---|
committer | Bjorn Steinbrink <bsteinbr@gmail.com> | 2014-10-16 19:43:08 +0000 |
commit | d20816fde95cb3c2467ef726790c06e8009a2653 (patch) | |
tree | d4d8f2f76be9647f098c886c8d40822c0e5fed92 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 51720673915e21fbe2756e9ec7a2b38f9b53396c (diff) | |
download | llvm-d20816fde95cb3c2467ef726790c06e8009a2653.zip llvm-d20816fde95cb3c2467ef726790c06e8009a2653.tar.gz llvm-d20816fde95cb3c2467ef726790c06e8009a2653.tar.bz2 |
Allow call-slop optzn for destinations with a suitable dereferenceable attribute
Summary:
Currently, call slot optimization requires that if the destination is an
argument, the argument has the sret attribute. This is to ensure that
the memory access won't trap. In addition to sret, we can also allow the
optimization to happen for arguments that have the new dereferenceable
attribute, which gives the same guarantee.
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D5832
llvm-svn: 219950
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions