[llvm] [IR] Speed up debug printing with persistent metadata IDs (PR #216838)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 23:21:08 PDT 2026
================
@@ -3105,6 +3124,10 @@ void AssemblyWriter::writeOperandBundles(const CallBase *Call) {
void AssemblyWriter::printModule(const Module *M) {
Machine.initializeIfNeeded();
+ for (const GlobalObject &GO : M->global_objects())
+ if (const Comdat *C = GO.getComdat())
+ Comdats.insert(C);
+
----------------
aengelke wrote:
This is unrelated and should be a separate change.
https://github.com/llvm/llvm-project/pull/216838
More information about the llvm-commits
mailing list