[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 08:46:34 PDT 2018
xbolva00 added a comment.
In https://reviews.llvm.org/D45344#1060689, @spatel wrote:
> If I apply this patch, the test case fails.
>
> Do you understand the problem with the intervening store? You can't solve that by simply removing the one-use check.
Oh, yes :( Any idea how to work around it?
https://reviews.llvm.org/D45344
More information about the llvm-commits
mailing list