[PATCH] D50556: [InstCombine] Improve strncpy to memcpy optimization

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 10 06:03:36 PDT 2018


xbolva00 abandoned this revision.
xbolva00 added a comment.

"strncpy() writes additional null bytes to dest to ensure that a total of n bytes are written"

So we cant do this. (or we can if we know it the buf is zero initialized)


https://reviews.llvm.org/D50556





More information about the llvm-commits mailing list