summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2015-11-17 19:30:51 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2015-11-17 19:30:51 +0000
commit3ec9e15ad405c7fc1332c0a27438b5d24c07f364 (patch)
treed0c35e5b1ea6ae9bd59c29bc458f805c65da1e0a /llvm/lib/Transforms
parentba920be4a220c53cc30ec29df3b721b85c1fb8b6 (diff)
downloadbcm5719-llvm-3ec9e15ad405c7fc1332c0a27438b5d24c07f364.tar.gz
bcm5719-llvm-3ec9e15ad405c7fc1332c0a27438b5d24c07f364.zip
Vector of pointers in function attributes calculation
While setting function attributes we check all instructions that may access memory. For a call instruction we check all arguments. The special check is required for pointers. I added vector-of-pointers to the call arguments types that should be checked. Differential Revision: http://reviews.llvm.org/D14693 llvm-svn: 253363
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index edebc26d475..8a697c3e6af 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -154,7 +154,7 @@ static MemoryAccessKind checkFunctionMemoryAccess(Function &F, AAResults &AAR,
for (CallSite::arg_iterator CI = CS.arg_begin(), CE = CS.arg_end();
CI != CE; ++CI) {
Value *Arg = *CI;
- if (!Arg->getType()->isPointerTy())
+ if (!Arg->getType()->isPtrOrPtrVectorTy())
continue;
AAMDNodes AAInfo;
OpenPOWER on IntegriCloud