[all-commits] [llvm/llvm-project] 9ce198: [Darwin] Respect -fno-unroll-loops during LTO.

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Mar 27 15:19:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ce198d6ed371399e9bd9ba8b48fbab0f4e60240
      https://github.com/llvm/llvm-project/commit/9ce198d6ed371399e9bd9ba8b48fbab0f4e60240
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

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

  Log Message:
  -----------
  [Darwin] Respect -fno-unroll-loops during LTO.

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.

Reviewers: thegameg, steven_wu

Reviewed By: thegameg

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




More information about the All-commits mailing list