This implements the second half of the fix for PR3290, handling
authorChris Lattner <sabre@nondot.org>
Thu, 8 Jan 2009 05:42:05 +0000 (05:42 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Jan 2009 05:42:05 +0000 (05:42 +0000)
commit5ffe6acd577696a41932c7b82db06a04687e07ba
tree0428339c472fbe19d2ccacd0e1f05aa369a341d9
parent8bb5e9901346f448461289f2d0079ed6d534b571
This implements the second half of the fix for PR3290, handling
loads from allocas that cover the entire aggregate.  This handles
some memcpy/byval cases that are produced by llvm-gcc.  This triggers
a few times in kc++ (with std::pair<std::_Rb_tree_const_iterator
<kc::impl_abstract_phylum*>,bool>) and once in 176.gcc (with %struct..0anon).

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