[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)
commit05daae75ad353b050e58599fbebc68a950d23f67
tree204e5cdc89ecc6f92e5c1fd648b5d9e117abd5a4
parent749788eab656be2427797db225a651649cd5a089
[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

llvm-svn: 327853
llvm/lib/Target/X86/X86InstrFPStack.td
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86ScheduleBtVer2.td
llvm/test/CodeGen/X86/schedule-x86_64.ll
llvm/test/CodeGen/X86/sse-schedule.ll
llvm/test/CodeGen/X86/x87-schedule.ll