[PATCH] D76916: [Darwin] Respect -fno-unroll-loops during LTO.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 04:17:49 PDT 2020


fhahn created this revision.
fhahn added reviewers: thegameg, steven_wu.
Herald added subscribers: cfe-commits, dang, dexonsmith, zzheng, hiraditya, inglorion.
Herald added a project: clang.

Currently -fno-unroll-loops is ignored when doing LTO on Darwin. This
patch adds a new -lto-no-unroll-loops option to the LTO code generator
and forwards it to the linker if -fno-unroll-loops is passed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76916

Files:
  clang/lib/Driver/ToolChains/Darwin.cpp
  clang/test/Driver/darwin-ld-lto-fno-unroll-loops.c
  llvm/lib/LTO/LTOCodeGenerator.cpp
  llvm/test/tools/llvm-lto/fno-unroll-loops-option.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76916.253075.patch
Type: text/x-patch
Size: 3640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200327/b9c71280/attachment.bin>


More information about the llvm-commits mailing list