[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
Thu Oct 10 13:46:16 PDT 2019
xbolva00 added a comment.
I am fine with your suggestion to restrict it like you said.
(Generally, I think more transforms in instcombine should be restricted this way)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67986/new/
https://reviews.llvm.org/D67986
More information about the llvm-commits
mailing list