[PATCH] D85165: [X86][MC][Target] Initial backend support a tune CPU to support -mtune

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 13:43:20 PDT 2020


craig.topper added a comment.

In D85165#2211400 <https://reviews.llvm.org/D85165#2211400>, @RKSimon wrote:

> @andreadb How well could we test this using the llvm-mca resource schedule tests?
>
>   # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -instruction-tables < %s | FileCheck %s
>   # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mtune=btver2 -instruction-tables < %s | FileCheck %s

I omitted -mtune command line support from this patch. The MC layer tools will always use -mcpu for the tune cpu.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85165/new/

https://reviews.llvm.org/D85165



More information about the llvm-commits mailing list