[PATCH] D101176: [SimplifyLibCalls] Transform malloc to calloc with redundant memsets elimination (PR25892)

Dawid Jurczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 28 03:53:17 PDT 2021


yurai007 added a comment.

@efriedma @xbolva00 : Ok. I can try to integrate this with memcpyopt or DCE. It should simplify scanning stores part. Not sure if it's possible to get rid of rest. 
For example we still need to perform malloc/calloc checks (for now memcpyopt knows nothing about allocation functions) and some kind of matching for icmp+br pattern.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101176/new/

https://reviews.llvm.org/D101176



More information about the llvm-commits mailing list