[DeadStoreElimination] Remove dead zero store to calloc initialized memory
authorIgor Laevsky <igmyrj@gmail.com>
Wed, 23 Sep 2015 11:38:44 +0000 (11:38 +0000)
committerIgor Laevsky <igmyrj@gmail.com>
Wed, 23 Sep 2015 11:38:44 +0000 (11:38 +0000)
commitebe9301ae14e6ad878f7e05c7d94ddea14bbfd3f
treedb932e64008da851f348fc5abc511baa8c2b3644
parent39a9cdb8b7338176c86c0d2fe9d1347233211312
[DeadStoreElimination] Remove dead zero store to calloc initialized memory

This change allows dead store elimination to remove zero and null stores into memory freshly allocated with calloc-like function.

Differential Revision: http://reviews.llvm.org/D13021

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/calloc-store.ll [new file with mode: 0644]