[clang] 0812848 - [RISCV] Remove unnecessary check for Zvfh in SemaRISCV::checkRVVTypeSupport. NFC (#202788)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 9 15:45:59 PDT 2026
Author: Craig Topper
Date: 2026-06-09T22:45:54Z
New Revision: 0812848fea235364842a626ba19ec1a7804006b7
URL: https://github.com/llvm/llvm-project/commit/0812848fea235364842a626ba19ec1a7804006b7
DIFF: https://github.com/llvm/llvm-project/commit/0812848fea235364842a626ba19ec1a7804006b7.diff
LOG: [RISCV] Remove unnecessary check for Zvfh in SemaRISCV::checkRVVTypeSupport. NFC (#202788)
Zvfh implies Zvfhmin so we only need to check the latter
Added:
Modified:
clang/lib/Sema/SemaRISCV.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaRISCV.cpp b/clang/lib/Sema/SemaRISCV.cpp
index 56555b931b8d5..9647a7d913744 100644
--- a/clang/lib/Sema/SemaRISCV.cpp
+++ b/clang/lib/Sema/SemaRISCV.cpp
@@ -1554,8 +1554,7 @@ void SemaRISCV::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D,
MinElts == 1) &&
!FeatureMap.lookup("zve64x"))
Diag(Loc, diag::err_riscv_type_requires_extension) << Ty << "zve64x";
- else if (Info.ElementType->isFloat16Type() && !FeatureMap.lookup("zvfh") &&
- !FeatureMap.lookup("zvfhmin") &&
+ else if (Info.ElementType->isFloat16Type() && !FeatureMap.lookup("zvfhmin") &&
!FeatureMap.lookup("xandesvpackfph"))
if (DeclareAndesVectorBuiltins) {
Diag(Loc, diag::err_riscv_type_requires_extension)
More information about the cfe-commits
mailing list