Teach one piece of scalarrepl to handle lifetime markers. When transforming an
authorNick Lewycky <nicholas@mxc.ca>
Mon, 27 Jun 2011 05:40:02 +0000 (05:40 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 27 Jun 2011 05:40:02 +0000 (05:40 +0000)
commit9174d5c7383490d79b6a483d73cded54e32275d6
tree5435c19cd62be16084387e6e354bd658a6757a5f
parent99e0b2a8df7e3a49c0e1edd250d17604fe2fb21c
Teach one piece of scalarrepl to handle lifetime markers. When transforming an
alloca that only holds a copy of a global and we're going to replace the users
of the alloca with that global, just nuke the lifetime intrinsics. Part of
PR10121.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/memcpy-from-global.ll