diff options
author | Dan Gohman <gohman@apple.com> | 2011-04-27 20:44:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-04-27 20:44:28 +0000 |
commit | 1d7e818a386610da70d56809ea67eb81e0f9c84b (patch) | |
tree | cf21e495814f7ec07c9a96d85bfccf1a3dbfb810 /lib/Analysis | |
parent | 0be77dff1147488814b8eea6ec8619f56e3d9f5e (diff) | |
download | external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.zip external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.tar.gz external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.tar.bz2 |
Teach BasicAA about arm.neon.vld1 and vst1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/BasicAliasAnalysis.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index be8ef96..f1bb8a3 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -779,6 +779,26 @@ BasicAliasAnalysis::getModRefInfo(ImmutableCallSite CS, return NoModRef; break; } + case Intrinsic::arm_neon_vld1: { + // LLVM's vld1 and vst1 intrinsics currently only support a single + // vector register. + uint64_t Size = + TD ? TD->getTypeStoreSize(II->getType()) : UnknownSize; + if (isNoAlias(Location(II->getArgOperand(0), Size, + II->getMetadata(LLVMContext::MD_tbaa)), + Loc)) + return NoModRef; + break; + } + case Intrinsic::arm_neon_vst1: { + uint64_t Size = + TD ? TD->getTypeStoreSize(II->getArgOperand(1)->getType()) : UnknownSize; + if (isNoAlias(Location(II->getArgOperand(0), Size, + II->getMetadata(LLVMContext::MD_tbaa)), + Loc)) + return NoModRef; + break; + } } // The AliasAnalysis base class has some smarts, lets use them. |