forked from OSchip/llvm-project
[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:
parent
af8953a025
commit
12aa5b733e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue