[PATCH] D16337: [LibCallSimplifier] fold memset(malloc(x), 0, x) --> calloc(1, x)

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 08:21:26 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL258816: [LibCallSimplifier] fold memset(malloc(x), 0, x) --> calloc(1, x) (authored by spatel).

Changed prior to commit:
  http://reviews.llvm.org/D16337?vs=45448&id=45997#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16337

Files:
  llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/trunk/test/Transforms/InstCombine/memset-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16337.45997.patch
Type: text/x-patch
Size: 5291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160126/68ad00d5/attachment.bin>


More information about the llvm-commits mailing list