[llvm] [MC] Use StringTable to reduce dynamic relocations (PR #144202)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 14 01:09:09 PDT 2025


================
@@ -324,6 +325,9 @@ struct MCSchedModel {
   const MCSchedClassDesc *SchedClassTable;
   unsigned NumProcResourceKinds;
   unsigned NumSchedClasses;
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+  const StringTable *SchedClassNames;
+#endif
----------------
nikic wrote:

It looks like the field is declared conditionally here, but then initialized unconditionally both via TableGen and in the test file?

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


More information about the llvm-commits mailing list