[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


================
@@ -1495,6 +1501,8 @@ void SubtargetEmitter::emitSchedClassTables(SchedClassTables &SchedTables,
     }
     OS << "}; // " << Proc.ModelName << "SchedClasses\n";
   }
+
+  StrTab.EmitStringTableDef(OS, Target + "SchedClassNames");
----------------
nikic wrote:

Should we move this behind the NDEBUG check as well, or do we just rely on it being DCEd? (Do we need to suppress a warning about an unused static in release builds possibly?)

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


More information about the llvm-commits mailing list