[PATCH] D47059: [InstCombine] Calloc-ed strings optimizations
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 18 05:20:08 PDT 2018
xbolva00 created this revision.
xbolva00 added a reviewer: efriedma.
Herald added a subscriber: llvm-commits.
Cases:
strlen(calloc(...)) -> 0
strcat(calloc(...), str) -> strcpy(calloc(...), str))
strncat(calloc(...), str, len) -> strncpy(calloc(...), str, len))
Repository:
rL LLVM
https://reviews.llvm.org/D47059
Files:
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/zero-string.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47059.147482.patch
Type: text/x-patch
Size: 6992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/e8d73c28/attachment.bin>
More information about the llvm-commits
mailing list