Teach basicaa that memset's modref set is at worst "mod" and never
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 00:28:45 +0000 (00:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 00:28:45 +0000 (00:28 +0000)
commit201d1e56bb7535802c70d5eb46601afcc325045d
tree06126f5e9e4f595a6bf9392503975886c6ddfdb3
parent532c2f1d503a42c5e8e0c5c9a513c459fed73d25
Teach basicaa that memset's modref set is at worst "mod" and never
contains "ref".

Enhance DSE to use a modref query instead of a store-specific hack
to generalize the "ignore may-alias stores" optimization to handle
memset and memcpy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/simple.ll