Skip to content

Commit 291667e

Browse files
bcheng0127igcbot
authored andcommitted
Change the footprint for OWORD load.
1 parent 24a0eac commit 291667e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

visa/LocalScheduler/SWSB_G4IR.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,13 @@ SBFootprint* G4_BB_SB::getFootprintForGRF(G4_Operand* opnd,
269269
if (opnd_num == Opnd_dst)
270270
{
271271
int dstSize = inst->getMsgDesc()->ResponseLength();
272-
if ((LB / numEltPerGRF<Type_UB>()) < (unsigned short)(totalGRFNum - 1))
272+
if (!inst->getMsgDesc()->isOwordLoad())
273273
{
274-
RB = LB + numEltPerGRF<Type_UB>() * dstSize - 1;
274+
if ((LB / numEltPerGRF<Type_UB>()) < (unsigned short)(totalGRFNum - 1))
275+
{
276+
RB = LB + numEltPerGRF<Type_UB>() * dstSize - 1;
277+
}
275278
}
276-
277279
}
278280

279281
assert(RB < (numEltPerGRF<Type_UB>() * aregOffset) && "Out of register bound");

0 commit comments

Comments
 (0)