[MemoryLocation] Handle memset_pattern{4,8,16} in getForDest.
authorFlorian Hahn <flo@fhahn.com>
Tue, 14 Dec 2021 14:41:28 +0000 (14:41 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 14 Dec 2021 14:41:28 +0000 (14:41 +0000)
commitac60263ad173dbd2eba6e0c8d892d8c3dcc5306c
tree9273461778d2c88240f850f95cae0c78b2932d9c
parenta376a3f354acf239460eb40115447a6f75d08419
[MemoryLocation] Handle memset_pattern{4,8,16} in getForDest.

memset_pattern{4,8,16} writes to the first argument. Use getForDest
to return the corresponding MemoryLocation.

Reviewed By: ab

Differential Revision: https://reviews.llvm.org/D114906
llvm/lib/Analysis/MemoryLocation.cpp
llvm/test/Transforms/DeadStoreElimination/libcalls-darwin.ll