Reland "[SLC] Preserve attrs for strncpy(x, "", y) -> memset(align 1 x, '\0', y)"
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 17:12:24 +0000 (17:12 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 17:12:24 +0000 (17:12 +0000)
commit0c0de794f1affc7460eb90626b8483e4a0cbde6c
tree0e1328714d7f42863a740348cd00e954fa3efe94
parent5abd6f46ae8ae1a8b0f52b60fb52e1ba444b3d9b
Reland "[SLC] Preserve attrs for strncpy(x, "", y) -> memset(align 1 x, '\0', y)"

llvm-svn: 372142
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strncpy-1.ll