[PATCH] D123752: [lld] Implement safe icf for MachO
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 19:46:48 PDT 2022
int3 added inline comments.
================
Comment at: lld/test/MachO/icf-safe.s:9-13
+; ICFSAFE: bl 0x[[#%x,REF_01:]]
+; ICFSAFE-NEXT: bl 0x[[#%x,REF_02:]]
+; ICFSAFE-NEXT: bl 0x[[#%x,REF_01:]]
+; ICFSAFE-NEXT: bl 0x[[#%x,REF_01:]]
+; ICFSAFE-NEXT: bl 0x[[#%x,REF_01:]]
----------------
if you add `--macho` to the objdump command (i.e. `llvm-objdump --macho -d`) these will be rendered as `bl _func0<N>` instead, then it's easy to check that those values are the same / different
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123752/new/
https://reviews.llvm.org/D123752
More information about the llvm-commits
mailing list