[PATCH] D79818: [lld] Support size levels with (Thin)LTO

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 16:09:51 PDT 2020


phosek created this revision.
phosek added a reviewer: ruiu.
Herald added subscribers: llvm-commits, dang, dexonsmith, steven_wu, MaskRay, hiraditya, arichardson, inglorion, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: MaskRay.
Herald added a project: LLVM.
phosek added a reviewer: tejohnson.

Currently the size levels aren't supported at all and attempt to use
these with (Thin)LTO results in failure because lld doesn't support
anything other than optimization levels. This change extends the option
handling to properly handle the size level and pass it to the LTO
backend.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79818

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/LTO.cpp
  lld/test/ELF/lto/opt-level.ll
  llvm/include/llvm/LTO/Config.h
  llvm/lib/LTO/LTOBackend.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79818.263548.patch
Type: text/x-patch
Size: 6982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200512/55892a32/attachment.bin>


More information about the llvm-commits mailing list