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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 09:15:38 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
----------------
MaskRay wrote:

Could add `EXE-NOT: {{.}}` to ensure that there is no new line below (to catch bugs like printing `redirecting` multiple times)

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


More information about the llvm-commits mailing list