[DSE] Handle inaccessiblememonly calloc
authorNikita Popov <npopov@redhat.com>
Tue, 18 Jan 2022 08:04:12 +0000 (09:04 +0100)
committerNikita Popov <npopov@redhat.com>
Wed, 19 Jan 2022 11:55:09 +0000 (12:55 +0100)
commit26f81984e7972c17c4e7f97b1f5a3fc2f4d76ca7
tree8ed93e38da031897ae2ce93925cb1efc049758e6
parent903424532f0b018447a00f8a534f362a9b3c246b
[DSE] Handle inaccessiblememonly calloc

Change the DSE calloc handling to assume that it is
inaccessiblememonly, i.e. the defining access is liveOnEntry.

Differential Revision: https://reviews.llvm.org/D117543
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/calloc-store.ll
llvm/test/Transforms/DeadStoreElimination/noop-stores.ll
llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll