[PATCH] D95122: [Libcalls, Attrs] Annotate libcalls with noundef
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 02:47:23 PST 2021
xbolva00 created this revision.
xbolva00 added a reviewer: jdoerfert.
Herald added a subscriber: hiraditya.
xbolva00 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
I think we can use here same logic as for nonnull.
strlen(X) - X must be noundef.
for libcalls with size arg, we add noundef only if size is known and greater than 0 - so pointers must be noundef.
https://reviews.llvm.org/D95122
Files:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memcpy_chk-1.ll
llvm/test/Transforms/InstCombine/mempcpy.ll
llvm/test/Transforms/InstCombine/snprintf.ll
llvm/test/Transforms/InstCombine/sprintf-1.ll
llvm/test/Transforms/InstCombine/stpcpy-1.ll
llvm/test/Transforms/InstCombine/strcpy-1.ll
llvm/test/Transforms/InstCombine/strlen-1.ll
llvm/test/Transforms/InstCombine/strlen-2.ll
llvm/test/Transforms/InstCombine/strncmp-1.ll
llvm/test/Transforms/InstCombine/strncpy-1.ll
llvm/test/Transforms/InstCombine/strstr-1.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95122.318139.patch
Type: text/x-patch
Size: 35935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210121/56222fe0/attachment.bin>
More information about the llvm-commits
mailing list