[PATCH] D55120: [MemCpyOpt] memset->memcpy forwarding with undef tail

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 30 06:48:14 PST 2018


nikic added a comment.

An alternative way to handle this would be to tell call slot optimization that if the call happens to be a memset, it does not need to check that the destination is non-trapping. This would drop the memcpy entirely right away. However, it is also less general, because it will not handle cases where the source value is still used afterwards (the malloc/free example here).


Repository:
  rL LLVM

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

https://reviews.llvm.org/D55120





More information about the llvm-commits mailing list