[llvm] 7bfad7b - [RISCV] Replace two calls to getMinRVVVectorSizeInBits with useRVVForFixedLengthVectors [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 15:59:42 PDT 2022
Author: Philip Reames
Date: 2022-06-23T15:59:33-07:00
New Revision: 7bfad7b9d8f978fa43a8d6112f7eb2462c28f6a0
URL: https://github.com/llvm/llvm-project/commit/7bfad7b9d8f978fa43a8d6112f7eb2462c28f6a0
DIFF: https://github.com/llvm/llvm-project/commit/7bfad7b9d8f978fa43a8d6112f7eb2462c28f6a0.diff
LOG: [RISCV] Replace two calls to getMinRVVVectorSizeInBits with useRVVForFixedLengthVectors [nfc]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
index 6a5092b6a7f8..02047f6274c2 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
@@ -114,7 +114,7 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
return false;
// Only support fixed vectors if we know the minimum vector size.
- if (isa<FixedVectorType>(DataType) && ST->getMinRVVVectorSizeInBits() == 0)
+ if (isa<FixedVectorType>(DataType) && !ST->useRVVForFixedLengthVectors())
return false;
// Don't allow elements larger than the ELEN.
@@ -142,7 +142,7 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
return false;
// Only support fixed vectors if we know the minimum vector size.
- if (isa<FixedVectorType>(DataType) && ST->getMinRVVVectorSizeInBits() == 0)
+ if (isa<FixedVectorType>(DataType) && !ST->useRVVForFixedLengthVectors())
return false;
// Don't allow elements larger than the ELEN.
More information about the llvm-commits
mailing list