[all-commits] [llvm/llvm-project] 607fb1: [AArch64] Always add -tune-cpu argument to -cc1 dr...

david-arm via All-commits all-commits at lists.llvm.org
Tue Oct 19 06:58:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 607fb1bb8c91a2f284d8c63f3066ab8cc1a66955
      https://github.com/llvm/llvm-project/commit/607fb1bb8c91a2f284d8c63f3066ab8cc1a66955
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-10-19 (Tue, 19 Oct 2021)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/aarch64-mtune.c
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/Target/AArch64/AArch64Subtarget.cpp
    M llvm/lib/Target/AArch64/AArch64Subtarget.h
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/unittests/Target/AArch64/InstSizes.cpp
    M llvm/unittests/Target/AArch64/MatrixRegisterAliasing.cpp

  Log Message:
  -----------
  [AArch64] Always add -tune-cpu argument to -cc1 driver

This patch ensures that we always tune for a given CPU on AArch64
targets when the user specifies the "-mtune=xyz" flag. In the
AArch64Subtarget if the tune flag is unset we use the CPU value
instead.

I've updated the release notes here:

  llvm/docs/ReleaseNotes.rst

and added tests here:

  clang/test/Driver/aarch64-mtune.c

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




More information about the All-commits mailing list