Skip to content

Commit bf1df25

Browse files
authored
[SLP] Use isValidElementType instead of (#87469)
FixedVectorType::isValidElementType for consistency.
1 parent e05c1b4 commit bf1df25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8447,7 +8447,7 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
84478447
else if (auto *IE = dyn_cast<InsertElementInst>(VL[0]))
84488448
ScalarTy = IE->getOperand(1)->getType();
84498449
}
8450-
if (!FixedVectorType::isValidElementType(ScalarTy))
8450+
if (!isValidElementType(ScalarTy))
84518451
return InstructionCost::getInvalid();
84528452
auto *VecTy = FixedVectorType::get(ScalarTy, VL.size());
84538453
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput;

0 commit comments

Comments
 (0)