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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 09:12:18 PDT 2019


xbolva00 added a comment.

In D67986#1681631 <https://reviews.llvm.org/D67986#1681631>, @efriedma wrote:

> 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.


Ok, done: https://reviews.llvm.org/D68089


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