[PATCH] D45344: [SimplifyLibcalls] Fold malloc + memset to calloc even for llvm.memset

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 14:22:28 PDT 2018


xbolva00 updated this revision to Diff 144399.
xbolva00 added a comment.

Patch reworked.

- Malloc + llvm.memset folding
- Store instructions eliminated between malloc and memset calls.

Can you look at it? @spatel @efriedma


https://reviews.llvm.org/D45344

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45344.144399.patch
Type: text/x-patch
Size: 7985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/ad2fe5bb/attachment.bin>


More information about the llvm-commits mailing list