[X86][Btver2] Add ResourceCycles and NumMicroOps overrides to scalar instructions. NFCI.

Currently still use default values - this is setup for a future patch.

llvm-svn: 327582
This commit is contained in:
Simon Pilgrim 2018-03-14 21:55:54 +00:00
parent 3a7a2e4a0a
commit dfeebdbed7
1 changed files with 8 additions and 2 deletions

View File

@ -76,14 +76,20 @@ def : ReadAdvance<ReadAfterLd, 3>;
// folded loads.
multiclass JWriteResIntPair<X86FoldableSchedWrite SchedRW,
ProcResourceKind ExePort,
int Lat> {
int Lat, int Res = 1, int UOps = 1> {
// Register variant is using a single cycle on ExePort.
def : WriteRes<SchedRW, [ExePort]> { let Latency = Lat; }
def : WriteRes<SchedRW, [ExePort]> {
let Latency = Lat;
let ResourceCycles = [Res];
let NumMicroOps = UOps;
}
// Memory variant also uses a cycle on JLAGU and adds 3 cycles to the
// latency.
def : WriteRes<SchedRW.Folded, [JLAGU, ExePort]> {
let Latency = !add(Lat, 3);
let ResourceCycles = [1, Res];
let NumMicroOps = UOps;
}
}