diff options
author | Han-Kuan Chen <hankuan.chen@sifive.com> | 2024-04-03 17:57:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 17:57:46 +0800 |
commit | bf1df250487584ec77b0ab567cd3cca5c2863270 (patch) | |
tree | 85871dae4cebe5b960667cf1ed3daa93adb3807b | |
parent | e05c1b46d0d3739cc48ad912dbe6e9affce05927 (diff) | |
download | llvm-bf1df250487584ec77b0ab567cd3cca5c2863270.zip llvm-bf1df250487584ec77b0ab567cd3cca5c2863270.tar.gz llvm-bf1df250487584ec77b0ab567cd3cca5c2863270.tar.bz2 |
[SLP] Use isValidElementType instead of (#87469)
FixedVectorType::isValidElementType for consistency.
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 6e7dcb9..db052ce 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -8447,7 +8447,7 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals, else if (auto *IE = dyn_cast<InsertElementInst>(VL[0])) ScalarTy = IE->getOperand(1)->getType(); } - if (!FixedVectorType::isValidElementType(ScalarTy)) + if (!isValidElementType(ScalarTy)) return InstructionCost::getInvalid(); auto *VecTy = FixedVectorType::get(ScalarTy, VL.size()); TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput; |