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

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 19 10:46:18 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
----------------
rnk wrote:

Right, that was an oversight. In the end, there are very few MCSchedModel instances, so having an empty field isn't that important. Fewer ifdefs seems like the better tradeoff.

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


More information about the llvm-commits mailing list