[all-commits] [llvm/llvm-project] b3e73d: [lld-macho][easy] Create group for LLD-specific CL...

Jez Ng via All-commits all-commits at lists.llvm.org
Wed Jan 20 11:26:38 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b3e73dc5af6b4d1438ea401a7ab60bfe298a53c6
      https://github.com/llvm/llvm-project/commit/b3e73dc5af6b4d1438ea401a7ab60bfe298a53c6
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-01-20 (Wed, 20 Jan 2021)

  Changed paths:
    M lld/MachO/Options.td

  Log Message:
  -----------
  [lld-macho][easy] Create group for LLD-specific CLI flags

Reviewed By: #lld-macho, compnerd

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


  Commit: 697f4e429b900d2d3d8a03713c7d6cd562a5bd35
      https://github.com/llvm/llvm-project/commit/697f4e429b900d2d3d8a03713c7d6cd562a5bd35
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-01-20 (Wed, 20 Jan 2021)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/LTO.cpp
    M lld/MachO/Options.td
    A lld/test/MachO/objc-arc-contract.ll
    M llvm/include/llvm/LTO/Config.h
    M llvm/lib/LTO/LTOBackend.cpp

  Log Message:
  -----------
  [lld-macho] Run ObjCContractPass during LTO

Run the ObjCARCContractPass during LTO. The legacy LTO backend (under
LTO/ThinLTOCodeGenerator.cpp) already does this; this diff just adds that
behavior to the new LTO backend. Without that pass, the objc.clang.arc.use
intrinsic will get passed to the instruction selector, which doesn't know how to
handle it.

In order to test both the new and old pass managers, I've also added support for
the `--[no-]lto-legacy-pass-manager` flags.

P.S. Not sure if the ordering of the pass within the pipeline matters...

Reviewed By: fhahn

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


Compare: https://github.com/llvm/llvm-project/compare/d97f776be5f8...697f4e429b90


More information about the All-commits mailing list