Skip to content

Commit 94e7d9c

Browse files
committed
[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.
1 parent 41baa69 commit 94e7d9c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -751,17 +751,6 @@ Error RISCVISAInfo::checkDependency() {
751751
if (HasZvl && !HasVector)
752752
return getExtensionRequiresError("zvl*b", "v' or 'zve*");
753753

754-
if (!HasVector)
755-
for (auto Ext :
756-
{"zvbb", "zvbc32e", "zvkb", "zvkg", "zvkgs", "zvkned", "zvknha", "zvksed", "zvksh"})
757-
if (Exts.count(Ext))
758-
return getExtensionRequiresError(Ext, "v' or 'zve*");
759-
760-
if (!Exts.count("zve64x"))
761-
for (auto Ext : {"zvknhb", "zvbc"})
762-
if (Exts.count(Ext))
763-
return getExtensionRequiresError(Ext, "v' or 'zve64*");
764-
765754
if ((HasZcmt || Exts.count("zcmp")) && HasD && (HasC || Exts.count("zcd")))
766755
return getError(Twine("'") + (HasZcmt ? "zcmt" : "zcmp") +
767756
"' extension is incompatible with '" +

0 commit comments

Comments
 (0)