[PATCH] D31547: [AMDGPU] Remove assumption that vector and scalar types do not alias

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 13:29:19 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL299250: [AMDGPU] Remove assumption that vector and scalar types do not alias (authored by rampitec).

Changed prior to commit:
  https://reviews.llvm.org/D31547?vs=93698&id=93700#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D31547

Files:
  llvm/trunk/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp


Index: llvm/trunk/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
@@ -98,14 +98,6 @@
   AliasResult Result = ASAliasRules.getAliasResult(asA, asB);
   if (Result == NoAlias) return Result;
 
-  if (isa<Argument>(LocA.Ptr) && isa<Argument>(LocB.Ptr)) {
-    Type *T1 = cast<PointerType>(LocA.Ptr->getType())->getElementType();
-    Type *T2 = cast<PointerType>(LocB.Ptr->getType())->getElementType();
-
-    if ((T1->isVectorTy() && !T2->isVectorTy()) ||
-        (T2->isVectorTy() && !T1->isVectorTy()))
-      return NoAlias;
-  }
   // Forward the query to the next alias analysis.
   return AAResultBase::alias(LocA, LocB);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31547.93700.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170331/8b87e4a8/attachment.bin>


More information about the llvm-commits mailing list