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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 13:31:15 PDT 2019


xbolva00 added a comment.

but  -fno-builtin is maybe too aggresive? somebody should benchmark kernel with/without it.

Anyway, I thought -fno-builtin-memccpy also could disable it, but no.. -fno-builtin-snprintf works.


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

https://reviews.llvm.org/D67986





More information about the llvm-commits mailing list