OSDN Git Service

[x86] put nops into the WriteNop class and customize for Jaguar
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Mar 2018 14:26:50 +0000 (14:26 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Mar 2018 14:26:50 +0000 (14:26 +0000)
commit3cf01d23dd13d4756d0fa18353d8d4b648198651
tree6cd17cdd9281323c5d1f06e2141d633d609d7eab
parentc27b35793b1f0100893b00eacc254ac14bdeed77
[x86] put nops into the WriteNop class and customize for Jaguar

1. Given that we already have a classification bucket with 'nop' in the name,
   that's where 'nop' belongs. Right now, it's only used for prefix bytes and 'pause'.
2. Make the latency of this class '1' for Jaguar to tell the scheduler (and presumably
   llvm-mca) how to model the resource requirements better even though a nop has no
   dependencies.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327853 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrFPStack.td
lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86ScheduleBtVer2.td
test/CodeGen/X86/schedule-x86_64.ll
test/CodeGen/X86/sse-schedule.ll
test/CodeGen/X86/x87-schedule.ll