diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-10-29 13:50:41 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2024-10-29 13:57:23 -0700 |
commit | 94e7d9c0bfe517507ea08b00fb00c32fb2837a82 (patch) | |
tree | f92f06a9fb6048312d4b72231f41c2e93c8e915f | |
parent | 41baa69a7e2ab3df13334565aa6ccdae1b0113ad (diff) | |
download | llvm-94e7d9c0bfe517507ea08b00fb00c32fb2837a82.zip llvm-94e7d9c0bfe517507ea08b00fb00c32fb2837a82.tar.gz llvm-94e7d9c0bfe517507ea08b00fb00c32fb2837a82.tar.bz2 |
[RISCV] Remove Zvk* dependency checks from RISCVISAInfo::checkDependency.
The Zvk* extensions now imply Zve32x or Zve64x so it shouldn't be
possible to fail these dependency checks.
-rw-r--r-- | llvm/lib/TargetParser/RISCVISAInfo.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp index caa5a97..de5b5c3 100644 --- a/llvm/lib/TargetParser/RISCVISAInfo.cpp +++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp @@ -751,17 +751,6 @@ Error RISCVISAInfo::checkDependency() { if (HasZvl && !HasVector) return getExtensionRequiresError("zvl*b", "v' or 'zve*"); - if (!HasVector) - for (auto Ext : - {"zvbb", "zvbc32e", "zvkb", "zvkg", "zvkgs", "zvkned", "zvknha", "zvksed", "zvksh"}) - if (Exts.count(Ext)) - return getExtensionRequiresError(Ext, "v' or 'zve*"); - - if (!Exts.count("zve64x")) - for (auto Ext : {"zvknhb", "zvbc"}) - if (Exts.count(Ext)) - return getExtensionRequiresError(Ext, "v' or 'zve64*"); - if ((HasZcmt || Exts.count("zcmp")) && HasD && (HasC || Exts.count("zcd"))) return getError(Twine("'") + (HasZcmt ? "zcmt" : "zcmp") + "' extension is incompatible with '" + |