Skip to content

Commit 5a945a4

Browse files
weiyu-chensys_zuul
authored andcommitted
Delete a dead function (NFC)
Change-Id: Ib5bec16e349ccb300a5c120e022e8075e304a8b3
1 parent 12da4a9 commit 5a945a4

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

visa/HWConformity.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4739,39 +4739,6 @@ bool HWConformity::convertMAD2MAC(INST_LIST_ITER iter, std::vector<G4_INST*>& ma
47394739
return false;
47404740
}
47414741

4742-
void HWConformity::convertComprInstSrcRegion(G4_INST* inst)
4743-
{
4744-
for (int k = 0; k < 2; k++)
4745-
{
4746-
G4_Operand* src = inst->getSrc(k);
4747-
4748-
if (!src || src->isImm() || (inst->isMath() && k == 1 && src->isNullReg()))
4749-
{
4750-
continue;
4751-
}
4752-
4753-
if (!src->isSrcRegRegion()) {
4754-
continue;
4755-
}
4756-
4757-
int w = src->asSrcRegRegion()->getRegion()->width;
4758-
int hs = src->asSrcRegRegion()->getRegion()->horzStride;
4759-
int vs = src->asSrcRegRegion()->getRegion()->vertStride;
4760-
4761-
if (w == 1 && hs == 0 && vs == 0)
4762-
{
4763-
continue;
4764-
}
4765-
4766-
if (inst->getExecSize() < w)
4767-
{
4768-
const RegionDesc* rd =
4769-
builder.createRegionDesc((uint16_t)(vs / 2), (uint16_t)(w / 2), (uint16_t)(hs / 2));
4770-
src->asSrcRegRegion()->setRegion(rd);
4771-
}
4772-
}
4773-
}
4774-
47754742
// replace src/dst with ACC
47764743
void HWConformity::addACCOpnd(
47774744
G4_INST* curInst, bool needACCSrc, int dstStride, G4_Type accTy)

visa/HWConformity.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ namespace vISA
130130
void convertMAD2MulAdd(INST_LIST_ITER iter, G4_BB *bb);
131131
G4_Type getAccType(G4_Type ty);
132132
bool findHoistLocation(INST_LIST_ITER start, INST_LIST_ITER &end, uint16_t &movDist, G4_INST *boundary);
133-
void convertComprInstSrcRegion(G4_INST *inst);
134133
void addACCOpnd(G4_INST *inst, bool needACCSrc, int stride, G4_Type accTy);
135134
void maintainDU4TempMov(G4_INST *inst, G4_INST *movInst);
136135
void fixImm64(INST_LIST_ITER i, G4_BB* bb);

0 commit comments

Comments
 (0)