[PATCH] D92433: [NewPM][LTO] Use new pass manager with ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 14:34:07 PST 2020


aeubanks created this revision.
Herald added subscribers: llvm-commits, steven_wu, hiraditya, arichardson, inglorion, sbc100, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: MaskRay.
Herald added a project: LLVM.
aeubanks requested review of this revision.
Herald added a subscriber: aheejin.

This changes the default value of llvm::lto::Config::UseNewPM to be the
value of the CMake variable ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER, rather
than always false.

So anybody building with -DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=ON will
now use the new pass manager via these interfaces. This matches Clang.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92433

Files:
  lld/COFF/Driver.cpp
  lld/ELF/Driver.cpp
  lld/wasm/Driver.cpp
  llvm/include/llvm/LTO/Config.h
  llvm/tools/gold/gold-plugin.cpp
  llvm/tools/llvm-lto2/llvm-lto2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92433.308775.patch
Type: text/x-patch
Size: 5219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201201/93e3b169/attachment.bin>


More information about the llvm-commits mailing list