[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
Sat Apr 7 10:57:56 PDT 2018
xbolva00 added a comment.
I added solution.
Simply check any Instruction between malloc and memset uses value from malloc, if so, do not fold.
https://reviews.llvm.org/D45344
More information about the llvm-commits
mailing list