[lld] [lld] Merge equivalent symbols found during ICF (PR #134342)

Pranav Kant via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 13:23:52 PDT 2025


================
@@ -17,7 +17,9 @@
 # EXE-NEXT: selected section {{.*}}:(.text.h1)
 # EXE-NEXT:   removing identical section {{.*}}:(.text.h2)
 # EXE-NEXT:   removing identical section {{.*}}:(.text.h3)
-# EXE-NOT:  {{.}}
+# EXE-NEXT: Redirecting f2 to f1
+# EXE-NEXT: Redirecting g2 to g1
+# EXE-NEXT: Redirecting g3 to g1
----------------
pranavk wrote:

I removed that earlier because we are redirecting these symbols twice -- once in the symtab and again in the ELFfile. I have changed the test and messages to better reflect that. I have also added `EXE-NOT: {{.}}` back in.

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


More information about the llvm-commits mailing list