[llvm] CodeGen: Eliminate dynamic relocations in the register superclass tables. (PR #119122)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 03:02:23 PST 2024


================
@@ -1286,8 +1286,8 @@ void RegisterInfoEmitter::runTargetDesc(raw_ostream &OS) {
     }
     OS << "};\n";
 
-    OS << "\nstatic const TargetRegisterClass *const "
-       << "NullRegClasses[] = { nullptr };\n\n";
+    OS << "\nstatic const unsigned "
----------------
jayfoad wrote:

Could use uint16_t to save space? All in-tree targets have well under 1000 classes currently.

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


More information about the llvm-commits mailing list