mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Revert "Allow SROA to look at a vector type and see if the offset is out of range to be replaced with a scalar access"
This reverts commit 51786e0aae
.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1764,12 +1764,6 @@ bool SROA::TypeHasComponent(Type *T, uint64_t Offset, uint64_t Size) {
|
||||
if (Offset >= AT->getNumElements() * EltSize)
|
||||
return false;
|
||||
Offset %= EltSize;
|
||||
} else if (VectorType *VT = dyn_cast<VectorType>(T)) {
|
||||
EltTy = VT->getElementType();
|
||||
EltSize = TD->getTypeAllocSize(EltTy);
|
||||
if (Offset >= VT->getNumElements() * EltSize)
|
||||
return false;
|
||||
Offset %= EltSize;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user