forked from OSchip/llvm-project
[X86][Haswell][SchedModel] Add architecture specific scheduling models.
Group: Integer instructions. Sub-group: String instructions. <rdar://problem/15607571> llvm-svn: 215908
This commit is contained in:
parent
e1b17768a0
commit
c58fc449fd
|
@ -306,6 +306,10 @@ def Write3P06_Lat2 : SchedWriteRes<[HWPort06]> {
|
|||
let ResourceCycles = [3];
|
||||
}
|
||||
|
||||
def WriteP0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
||||
let NumMicroOps = 2;
|
||||
}
|
||||
|
||||
def WriteP0156_2P237_P4 : SchedWriteRes<[HWPort0156, HWPort237, HWPort4]> {
|
||||
let Latency = 1;
|
||||
let ResourceCycles = [1, 2, 1];
|
||||
|
@ -316,6 +320,11 @@ def Write2P0156_2P237_P4 : SchedWriteRes<[HWPort0156, HWPort237, HWPort4]> {
|
|||
let ResourceCycles = [2, 2, 1];
|
||||
}
|
||||
|
||||
def Write2P0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
||||
let NumMicroOps = 3;
|
||||
let ResourceCycles = [2, 1];
|
||||
}
|
||||
|
||||
def Write3P0156_2P237_P4 : SchedWriteRes<[HWPort0156, HWPort237, HWPort4]> {
|
||||
let Latency = 1;
|
||||
let ResourceCycles = [3, 2, 1];
|
||||
|
@ -874,4 +883,37 @@ def WriteINTO : SchedWriteRes<[]> {
|
|||
}
|
||||
def : InstRW<[WriteINTO], (instregex "INTO")>;
|
||||
|
||||
//-- String instructions --//
|
||||
|
||||
// LODSB/W.
|
||||
def : InstRW<[Write2P0156_P23], (instregex "LODS(B|W)")>;
|
||||
|
||||
// LODSD/Q.
|
||||
def : InstRW<[WriteP0156_P23], (instregex "LODS(L|Q)")>;
|
||||
|
||||
// STOS.
|
||||
def WriteSTOS : SchedWriteRes<[HWPort23, HWPort0156, HWPort4]> {
|
||||
let NumMicroOps = 3;
|
||||
}
|
||||
def : InstRW<[WriteSTOS], (instregex "STOS(B|L|Q|W)")>;
|
||||
|
||||
// MOVS.
|
||||
def WriteMOVS : SchedWriteRes<[HWPort23, HWPort4, HWPort0156]> {
|
||||
let Latency = 4;
|
||||
let NumMicroOps = 5;
|
||||
let ResourceCycles = [2, 1, 2];
|
||||
}
|
||||
def : InstRW<[WriteMOVS], (instregex "MOVS(B|L|Q|W)")>;
|
||||
|
||||
// SCAS.
|
||||
def : InstRW<[Write2P0156_P23], (instregex "SCAS(B|W|L|Q)")>;
|
||||
|
||||
// CMPS.
|
||||
def WriteCMPS : SchedWriteRes<[HWPort23, HWPort0156]> {
|
||||
let Latency = 4;
|
||||
let NumMicroOps = 5;
|
||||
let ResourceCycles = [2, 3];
|
||||
}
|
||||
def : InstRW<[WriteCMPS], (instregex "CMPS(B|L|Q|W)")>;
|
||||
|
||||
} // SchedModel
|
||||
|
|
Loading…
Reference in New Issue