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

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

llvm-svn: 299250
This commit is contained in:
Stanislav Mekhanoshin 2017-03-31 20:16:54 +00:00
parent af8953a025
commit 12aa5b733e
1 changed files with 0 additions and 8 deletions

View File

@ -98,14 +98,6 @@ AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA,
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);
}