Fix more fallout from r158919, similar to PR13547.
authorBob Wilson <bob.wilson@apple.com>
Mon, 3 Sep 2012 05:15:15 +0000 (05:15 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 3 Sep 2012 05:15:15 +0000 (05:15 +0000)
commit84451a110da981adfff2792c3aee5df322864da6
tree2a002e044348ce3d34af1322734da220874a74da
parentc4d2560a2010456f4eea0007eb71829d5668e7dd
Fix more fallout from r158919, similar to PR13547.

This code used to only handle malloc-like calls, which do not read memory.
r158919 changed it to check isNoAliasFn(), which includes strdup-like and
realloc-like calls, but it was not checking for dependencies on the memory
read by those calls.

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