diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-01-26 16:17:24 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-01-26 16:17:24 +0000 |
commit | 980b280f501b91fb13538c95de5b0677f2b635fb (patch) | |
tree | 259b13691c3cec9791eb2645aa2b7dbf15eddaac /llvm/tools/llvm-mc/Disassembler.cpp | |
parent | f662fb3dc82374182aecd09da9bc8239f2b34702 (diff) | |
download | bcm5719-llvm-980b280f501b91fb13538c95de5b0677f2b635fb.tar.gz bcm5719-llvm-980b280f501b91fb13538c95de5b0677f2b635fb.zip |
[LibCallSimplifier] fold memset(malloc(x), 0, x) --> calloc(1, x)
This is a step towards solving PR25892:
https://llvm.org/bugs/show_bug.cgi?id=25892
It won't handle the reported case. As noted by the 'TODO' comments in the patch,
we need to relax the hasOneUse() constraint and also match patterns that include
memset_chk() and the llvm.memset() intrinsic in addition to memset().
Differential Revision: http://reviews.llvm.org/D16337
llvm-svn: 258816
Diffstat (limited to 'llvm/tools/llvm-mc/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions