Skip to content

Commit d9e62ba

Browse files
bcheng0127sys_zuul
authored and
sys_zuul
committed
SWSB debug mechanism update
Change-Id: I22476dc726cba201fe5d87482ff29fd6a5ff9ffd
1 parent 394c73c commit d9e62ba

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

visa/LocalScheduler/SWSB_G4IR.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5954,7 +5954,7 @@ void G4_BB::emitDepInfo(std::ostream& output, G4_INST* inst, int offset)
59545954
return;
59555955
}
59565956

5957-
static bool isSWSBRequired(G4_INST* inst)
5957+
static bool isSWSBRequired(IR_Builder* builder, G4_INST* inst)
59585958
{
59595959
// Iterate over all operands and create buckets.
59605960
for (Gen4_Operand_Number opndNum
@@ -5990,11 +5990,12 @@ static bool isSWSBRequired(G4_INST* inst)
59905990
return false;
59915991
}
59925992

5993-
static G4_INST* setForceDebugSWSB(IR_Builder* builder, G4_BB* bb, G4_INST* inst)
5993+
static G4_INST* setForceDebugSWSB(IR_Builder* builder, G4_BB* bb, INST_LIST_ITER inst_it)
59945994
{
5995+
G4_INST* inst = (*inst_it);
59955996
G4_INST* syncInst = nullptr;
59965997

5997-
if (!isSWSBRequired(inst))
5998+
if (!isSWSBRequired(builder, inst))
59985999
{
59996000
return nullptr;
60006001
}
@@ -6043,7 +6044,7 @@ void vISA::forceDebugSWSB(G4_Kernel* kernel)
60436044
G4_INST* inst = (*inst_it);
60446045
G4_INST* newInst = nullptr;
60456046

6046-
newInst = setForceDebugSWSB(kernel->fg.builder, bb, inst);
6047+
newInst = setForceDebugSWSB(kernel->fg.builder, bb, inst_it);
60476048
inst->setLexicalId(instID);
60486049
instID++;
60496050

0 commit comments

Comments
 (0)