enhance the "alloca is just a memcpy from constant global"
authorChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2010 06:26:49 +0000 (06:26 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2010 06:26:49 +0000 (06:26 +0000)
commita9be1df6d7a9b5a07253d83a634ae5876e7e5550
tree4bd0628b23e9601cffb1a0bfe9a944585ffbe03d
parent2e61849f45144f2f05d57b00947df7e101610694
enhance the "alloca is just a memcpy from constant global"
to ignore calls that obviously can't modify the alloca
because they are readonly/readnone.

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