[all-commits] [llvm/llvm-project] 15f685: [lld-macho] Fold cfstrings with --deduplicate-lite...

Keith Smiley via All-commits all-commits at lists.llvm.org
Wed Jul 20 11:16:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15f685eaa8861d69315f65ed53a00f83c3365f0e
      https://github.com/llvm/llvm-project/commit/15f685eaa8861d69315f65ed53a00f83c3365f0e
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/ICF.cpp
    M lld/MachO/ICF.h
    M lld/MachO/InputFiles.cpp
    M lld/test/MachO/cfstring-dedup.s

  Log Message:
  -----------
  [lld-macho] Fold cfstrings with --deduplicate-literals

Similar to cstrings ld64 always deduplicates cfstrings. This was already
being done when enabling ICF, but for debug builds you may want to flip
this on if you cannot eliminate your instances of this, so this change
makes --deduplicate-literals also apply to cfstrings.

Differential Revision: https://reviews.llvm.org/D130134




More information about the All-commits mailing list