Improve the return slot optimization to be both more aggressive (not limited to sret...
authorOwen Anderson <resistor@mac.com>
Wed, 12 Mar 2008 07:37:44 +0000 (07:37 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 12 Mar 2008 07:37:44 +0000 (07:37 +0000)
commit6bb0bd52ecf7481c26cb2d211d6f4f41a6edc855
tree6e8449d6b570ead03b2348aae6df4aead814fd9f
parentc8e3b147eea6155eb047340205730b5332259bb6
Improve the return slot optimization to be both more aggressive (not limited to sret parameters), and
safer (when the passed pointer might be invalid).  Thanks to Duncan and Chris for the idea behind this,
and extra thanks to Duncan for helping me work out the trap-safety.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48280 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/2008-02-24-MultipleUseofSRet.ll