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(LocA.Ptr) && isa(LocB.Ptr)) { - Type *T1 = cast(LocA.Ptr->getType())->getElementType(); - Type *T2 = cast(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); }