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

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 12:47:09 PDT 2020


RKSimon added a comment.

In D85165#2192126 <https://reviews.llvm.org/D85165#2192126>, @efriedma wrote:

> Do the x86 scheduling models do something sane with "impossible" instructions, like if you use AVX512 instructions with Atom tuning?

AFAICT it should still use the model from the base cpu, and just apply the fast/slow feature flags from the tune cpu - so it shouldn't permit any mismatches - is that right?

In D85165#2193969 <https://reviews.llvm.org/D85165#2193969>, @craig.topper wrote:

> @andreadb @RKSimon or @efriedma do any of you have suggestions for simple scheduler tests for this? I was hoping I could use -print-schedule like we used to but that no longer exists.

Since I've been working on HADD/SUB recently :-)  Using -mtune=btver2 on a 'slow' base cpu should fold single shuffle HADD patterns. Tests based on other simple feature bits like SlowSHLD should be simple as well. More complex cases like LEA/NOPs etc. might work but could be trickier.


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

https://reviews.llvm.org/D85165



More information about the llvm-commits mailing list