[PATCH] D67986: [InstCombine] snprintf (d, size, "%s", s) -> memccpy (d, s, '\0', size).

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 16:43:06 PDT 2019


efriedma added a comment.

Do we have accurate TLI information for memccpy?  Not sure exactly how widely available it is.

If we're going to start generating memccpy calls, do we need to implement optimizations for it?  For example, memccpy of a constant string can be transformed to memcpy.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D67986





More information about the llvm-commits mailing list