]> granicus.if.org Git - llvm/commit
[SimplifyLibCalls] Add noalias from known callsites
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 13 Aug 2019 17:18:46 +0000 (17:18 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 13 Aug 2019 17:18:46 +0000 (17:18 +0000)
commit724a1895341f393ec4c37ddaf93248f13efd838d
tree3ce909605f7e0eb6921b649b2e305c2a7a03ccfe
parentee6bef201dbb129cad89586f52711dc5904733f0
[SimplifyLibCalls] Add noalias from known callsites

Summary:
Should be fine for memcpy, strcpy, strncpy.

Reviewers: jdoerfert, efriedma

Reviewed By: jdoerfert

Subscribers: uenoku, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66135

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368724 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll
test/Transforms/InstCombine/annotate-noalias.ll [new file with mode: 0644]
test/Transforms/InstCombine/mem-deref-bytes.ll
test/Transforms/InstCombine/memcpy-1.ll
test/Transforms/InstCombine/memcpy-from-global.ll
test/Transforms/InstCombine/memcpy-to-load.ll
test/Transforms/InstCombine/memcpy.ll
test/Transforms/InstCombine/memcpy_chk-1.ll
test/Transforms/InstCombine/memmove.ll
test/Transforms/InstCombine/objsize.ll
test/Transforms/InstCombine/sprintf-1.ll
test/Transforms/InstCombine/stpcpy_chk-1.ll
test/Transforms/InstCombine/strcpy_chk-1.ll
test/Transforms/InstCombine/strncpy_chk-1.ll
test/Transforms/MemCpyOpt/memcpy-to-memset-with-lifetimes.ll