Skip to content

Commit 2f590c7

Browse files
committed
delete
1 parent bf6c5af commit 2f590c7

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,35 +2178,6 @@ static bool isVectorPromotionViableForSlice(Partition &P, const Slice &S,
21782178
return true;
21792179
}
21802180

2181-
/// Test whether a vector type is viable for promotion.
2182-
///
2183-
/// This implements the necessary checking for \c checkVectorTypesForPromotion
2184-
/// (and thus isVectorPromotionViable) over all slices of the alloca for the
2185-
/// given VectorType.
2186-
static bool checkVectorTypeForPromotion(Partition &P, VectorType *VTy,
2187-
const DataLayout &DL, unsigned VScale) {
2188-
uint64_t ElementSize =
2189-
DL.getTypeSizeInBits(VTy->getElementType()).getFixedValue();
2190-
2191-
// While the definition of LLVM vectors is bitpacked, we don't support sizes
2192-
// that aren't byte sized.
2193-
if (ElementSize % 8)
2194-
return false;
2195-
assert((DL.getTypeSizeInBits(VTy).getFixedValue() % 8) == 0 &&
2196-
"vector size not a multiple of element size?");
2197-
ElementSize /= 8;
2198-
2199-
for (const Slice &S : P)
2200-
if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL, VScale))
2201-
return false;
2202-
2203-
for (const Slice *S : P.splitSliceTails())
2204-
if (!isVectorPromotionViableForSlice(P, *S, VTy, ElementSize, DL, VScale))
2205-
return false;
2206-
2207-
return true;
2208-
}
2209-
22102181
/// Test whether any vector type in \p CandidateTys is viable for promotion.
22112182
///
22122183
/// This implements the necessary checking for \c isVectorPromotionViable over

0 commit comments

Comments
 (0)