[AArch64] Always add -tune-cpu argument to -cc1 driver
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 22 Sep 2021 13:56:30 +0000 (14:56 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Tue, 19 Oct 2021 13:57:51 +0000 (14:57 +0100)
commit607fb1bb8c91a2f284d8c63f3066ab8cc1a66955
tree96d2d00c7ca31a6fbb6c86f8ef03ec752b226367
parentca889733a2271e3c4953cb097d212c834975596b
[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
clang/docs/ReleaseNotes.rst
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/aarch64-mtune.c [new file with mode: 0644]
llvm/docs/ReleaseNotes.rst
llvm/lib/Target/AArch64/AArch64Subtarget.cpp
llvm/lib/Target/AArch64/AArch64Subtarget.h
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/unittests/Target/AArch64/InstSizes.cpp
llvm/unittests/Target/AArch64/MatrixRegisterAliasing.cpp