[all-commits] [llvm/llvm-project] 6c6279: [lld-macho] Ensure cached objects are affected by ...

Leonard Grey via All-commits all-commits at lists.llvm.org
Fri Aug 12 08:06:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c627950585a5ddb6e3eed9d80da32be6f3a7336
      https://github.com/llvm/llvm-project/commit/6c627950585a5ddb6e3eed9d80da32be6f3a7336
  Author: Leonard Grey <lgrey at chromium.org>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M lld/MachO/LTO.cpp
    R lld/test/MachO/lto-cache-dsymutil.ll
    M lld/test/MachO/lto-object-path.ll

  Log Message:
  -----------
  [lld-macho] Ensure cached objects are affected by `-object_path_lto`

This refactors LTO compile to look more like COFF, where cache hits and misses are all funneled through the same code path.

Previously, cache hits were *not* being saved to -object_path_lto, which led to them sometimes falling out of the cache before dsymutil could process them. As a side effect of the refactor, cached objects are now saved with -save-temps as well, which seems desirable.

(Deleted lld/test/MachO/lto-cache-dsymutil.ll and rolled it into lld/test/MachO/lto-object-path.ll, since the cache-only, non object path approach is unreliable anyway).

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




More information about the All-commits mailing list