[SimplifyLibCalls][NFC] Clean up LibCallSimplifier from 'memset + malloc into calloc...
authorDawid Jurczak <dawid_jurek@vp.pl>
Thu, 5 Aug 2021 10:30:19 +0000 (12:30 +0200)
committerDawid Jurczak <dawid_jurek@vp.pl>
Thu, 5 Aug 2021 14:08:32 +0000 (16:08 +0200)
commitf8cdde71950760675f81fa89fcd603b4391908a4
tree891a4b28060659dfa2e5e8e7762e496bc9530f6b
parentd0c3b61498ecc04c9d95f6af7eb7560727500d56
[SimplifyLibCalls][NFC] Clean up LibCallSimplifier from 'memset + malloc into calloc' transformation

FoldMallocMemset can be safely removed because since https://reviews.llvm.org/D103009
such transformation is already performed in DSE.

Differential Revision: https://reviews.llvm.org/D103451
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memset-1.ll