[llvm] [RISCV] Reduce size of CSR lookup tables. NFC (PR #121606)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 13:52:45 PST 2025


================
@@ -1915,6 +1915,8 @@ ParseStatus RISCVAsmParser::parseCSRSystemRegister(OperandVector &Operands) {
         // Accept an immediate representing a named Sys Reg if it satisfies the
         // the required features.
         for (auto &Reg : Range) {
+          if (Reg.IsAltName || Reg.IsDeprecatedName)
----------------
topperc wrote:

This isn't strictly needed, but ensures we use the required features from the primary name and not the alternate or deprecated names.

https://github.com/llvm/llvm-project/pull/121606


More information about the llvm-commits mailing list