[all-commits] [llvm/llvm-project] 495444: [Driver][X86] Support branch align options with LTO

KanRobert via All-commits all-commits at lists.llvm.org
Wed May 27 22:18:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 49544499954912c5a0f02014de53e0bc0234c7af
      https://github.com/llvm/llvm-project/commit/49544499954912c5a0f02014de53e0bc0234c7af
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2020-05-28 (Thu, 28 May 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.h
    M clang/test/Driver/x86-malign-branch.c

  Log Message:
  -----------
  [Driver][X86] Support branch align options with LTO

Summary: Before this patch, we use two different ways to pass options to align branch
depending on whether LTO is enabled. For example, `-mbranches-within-32B-boundaries`
w/o LTO and `-Wl,-plugin-opt=-x86-branches-within-32B-boundaries` w/ LTO.  It's
inconvenient, so this patch unifies the way: we only need to pass options like
`-mbranches-within-32B-boundaries` to align branches, no matter LTO is enabled or not.

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




More information about the All-commits mailing list