[llvm] [SROA]: Only defer trying partial sized ptr or ptr vector types (PR #82279)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 00:37:30 PST 2024
================
@@ -2314,42 +2346,33 @@ static VectorType *isVectorPromotionViable(Partition &P, const DataLayout &DL) {
Ty = SI->getValueOperand()->getType();
else
continue;
+
+ auto CandTy =
+ isa<VectorType>(Ty) ? cast<VectorType>(Ty)->getElementType() : Ty;
----------------
arsenm wrote:
This is getScalarType
https://github.com/llvm/llvm-project/pull/82279
More information about the llvm-commits
mailing list