mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -689,7 +689,7 @@ BasicAliasAnalysis::CheckGEPInstructions(
|
||||
if (const ArrayType *AT = dyn_cast<ArrayType>(BasePtr1Ty)) {
|
||||
if (Op1C->getZExtValue() >= AT->getNumElements())
|
||||
return MayAlias; // Be conservative with out-of-range accesses
|
||||
} else if (const PackedType *PT = dyn_cast<PackedType>(BasePtr1Ty)) {
|
||||
} else if (const VectorType *PT = dyn_cast<VectorType>(BasePtr1Ty)) {
|
||||
if (Op1C->getZExtValue() >= PT->getNumElements())
|
||||
return MayAlias; // Be conservative with out-of-range accesses
|
||||
}
|
||||
@@ -707,7 +707,7 @@ BasicAliasAnalysis::CheckGEPInstructions(
|
||||
//
|
||||
if (const ArrayType *AT = dyn_cast<ArrayType>(BasePtr1Ty))
|
||||
GEP1Ops[i] = ConstantInt::get(Type::Int64Ty,AT->getNumElements()-1);
|
||||
else if (const PackedType *PT = dyn_cast<PackedType>(BasePtr1Ty))
|
||||
else if (const VectorType *PT = dyn_cast<VectorType>(BasePtr1Ty))
|
||||
GEP1Ops[i] = ConstantInt::get(Type::Int64Ty,PT->getNumElements()-1);
|
||||
|
||||
}
|
||||
@@ -719,7 +719,7 @@ BasicAliasAnalysis::CheckGEPInstructions(
|
||||
if (const ArrayType *AT = dyn_cast<ArrayType>(BasePtr1Ty)) {
|
||||
if (Op2C->getZExtValue() >= AT->getNumElements())
|
||||
return MayAlias; // Be conservative with out-of-range accesses
|
||||
} else if (const PackedType *PT = dyn_cast<PackedType>(BasePtr1Ty)) {
|
||||
} else if (const VectorType *PT = dyn_cast<VectorType>(BasePtr1Ty)) {
|
||||
if (Op2C->getZExtValue() >= PT->getNumElements())
|
||||
return MayAlias; // Be conservative with out-of-range accesses
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user