Skip to content

Commit 66b75f2

Browse files
bcheng0127igcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 8c7322b
SWSB: track WAR A0 register dependence Current solution is too conservative, which may affect performance because setting A@1.
1 parent 74d19b0 commit 66b75f2

File tree

3 files changed

+108
-172
lines changed

3 files changed

+108
-172
lines changed

visa/HWCaps.inc

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -459,19 +459,9 @@ G4_Type getMixModeType() const {
459459
// each flag register is 16-bit
460460
uint32_t getNumFlagRegisters(void) { return getPlatform() >= Xe_PVC ? 8 : 4; }
461461

462-
// each address register is 16 bits
463462
uint32_t getNumAddrRegisters() const {
464463
return 16;
465-
}
466-
467-
// each address register is 16 bits
468-
uint32_t getNumAddrRegistersInGRFSizeSWSB() const {
469-
if (hasMultipleALUPipes()) {
470-
return ((16 * G4_WSIZE) + numEltPerGRF<Type_UB>() - 1) / numEltPerGRF<Type_UB>();
471-
} else {
472-
return 0;
473-
}
474-
}
464+
}
475465

476466
uint32_t getNumScalarRegisters(void) {
477467
if (enableSendIndirect()) {
@@ -656,8 +646,6 @@ bool hasLongOperandTypeDepIssue() const {
656646

657647
bool hasFourALUPipes() const { return getPlatform() >= Xe_PVC; }
658648

659-
bool hasMultipleALUPipes() const { return hasThreeALUPipes() || hasFourALUPipes(); };
660-
661649
bool hasFiveALUPipes() const {
662650
return getPlatform() >= Xe2;
663651
}
@@ -737,6 +725,10 @@ bool hasWriteCombine() const {
737725
return getPlatform() >= Xe2;
738726
}
739727

728+
bool hasA0WARHWissue() {
729+
return getPlatform() >= Xe_XeHPSDV;
730+
}
731+
740732
bool hasFtoPackedHFMove() const { return getPlatform() >= Xe_DG2; }
741733

742734
bool hasGather4PO() const { return getPlatform() <= GENX_TGLLP; }

0 commit comments

Comments
 (0)