summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-07-13 17:25:11 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-07-13 17:25:11 +0000
commit12cccdd73142aba5b1d04c0c108a80bff59e13ed (patch)
tree910f2edd6bcd6659e7ad48c6554056bd3c2ac742 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parentb83cf10899a7fd1d10b5b51910e1b3b83de7b005 (diff)
downloadbcm5719-llvm-12cccdd73142aba5b1d04c0c108a80bff59e13ed.tar.gz
bcm5719-llvm-12cccdd73142aba5b1d04c0c108a80bff59e13ed.zip
Fix for Bug 26903, adds support to inline __builtin_mempcpy
Patch by Sunita Marathe Differential Revision: http://reviews.llvm.org/D21920 llvm-svn: 275284
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BuildLibCalls.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
index f4260a9ff98..e61b04fbdd5 100644
--- a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -250,6 +250,7 @@ bool llvm::inferLibFuncAttributes(Function &F, const TargetLibraryInfo &TLI) {
Changed |= setDoesNotCapture(F, 2);
return Changed;
case LibFunc::memcpy:
+ case LibFunc::mempcpy:
case LibFunc::memccpy:
case LibFunc::memmove:
Changed |= setDoesNotThrow(F);
OpenPOWER on IntegriCloud