[all-commits] [llvm/llvm-project] 893efd: [X86] Honor command line features along with cpu_s...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Nov 11 09:06:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 893efd0d665becb3478c750b2b4d3751c20ff39d
      https://github.com/llvm/llvm-project/commit/893efd0d665becb3478c750b2b4d3751c20ff39d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-11-11 (Thu, 11 Nov 2021)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    A clang/test/CodeGen/attr-cpuspecific-avx-abi.c

  Log Message:
  -----------
  [X86] Honor command line features along with cpu_specific attribute

If the feature is on the command line we should honor it for all
functions. I don't think we could reliably target a single function
for a less capable processor than what the rest of the program is
compiled for.

Fixes PR52407.

Reviewed By: erichkeane

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




More information about the All-commits mailing list