[PATCH] D51570: [X86][XOP] VFRCZ* instructions should be in their own sched class

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 3 04:15:03 PDT 2018


lebedev.ri added inline comments.


================
Comment at: lib/Target/X86/X86SchedSandyBridge.td:15
 // but we still have to define them because SNB is the default subtarget for
 // X86. These instructions are tagged with a comment `Unsupported = 1`.
 //
----------------
RKSimon wrote:
> This comment explains that SNB must support all models as its used as the generic model.
Aha.
I suppose that also answers my unasked question as to why there is
two distinct ways to mark 'instruction' as unsupported - here for schedule class,
and `ProcessorFeatures`.


================
Comment at: test/tools/llvm-mca/X86/Generic/resources-xop.s:2
+# It seems we can't actually run this test using generic cpu, since these are XOP instructions, and the generic cpu does not support them.
+# -R-U-N-: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -instruction-tables < %s | FileCheck %s
+
----------------
RKSimon wrote:
> You are missing the whole point of the generic model by doing this.
Indeed i do.


Repository:
  rL LLVM

https://reviews.llvm.org/D51570





More information about the llvm-commits mailing list