[DSE] Support eliminating memcpy.inline.
authorFlorian Hahn <flo@fhahn.com>
Thu, 10 Sep 2020 12:09:25 +0000 (13:09 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 10 Sep 2020 12:19:25 +0000 (13:19 +0100)
commita5ec99da6ea75a013ed201eb9c80066bd6f4131d
tree3c0e3c6929b00d2326e94aae89025aa3b0814991
parentec46cfefe80d58cdc7068ad4e4f8efde6d94d835
[DSE] Support eliminating memcpy.inline.

MemoryLocation has been taught about memcpy.inline, which means we can
get the memory locations read and written by it. This means DSE can
handle memcpy.inline
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-and-memcpy.ll