Skip to content

Commit 2671587

Browse files
pratikasharsys_zuul
authored and
sys_zuul
committed
Fix in reporting scratch size
Change-Id: Ib6e05695dbea061b01d38beb3a0d9fc965cce32b
1 parent b9600d3 commit 2671587

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

visa/GraphColor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9509,7 +9509,6 @@ int GlobalRA::coloringRegAlloc()
95099509
jitInfo->hasStackcalls = kernel.fg.getHasStackCalls();
95109510
jitInfo->spillMemUsed = spillMemUsed;
95119511
jitInfo->numGRFSpillFill = GRFSpillFillCount;
9512-
jitInfo->numBytesScratchGtpin = kernel.getGTPinData()->getNumBytesScratchUse();
95139512
}
95149513

95159514
kernel.getGTPinData()->setScratchNextFree(spillMemUsed);

visa/RegAlloc.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3804,6 +3804,10 @@ int regAlloc(IR_Builder& builder, PhyRegPool& regPool, G4_Kernel& kernel)
38043804

38053805
int status = gra.coloringRegAlloc();
38063806

3807+
if (auto jitInfo = builder.getJitInfo())
3808+
{
3809+
jitInfo->numBytesScratchGtpin = kernel.getGTPinData()->getNumBytesScratchUse();
3810+
}
38073811
splitPass.replaceIntrinsics();
38083812

38093813
recordRAStats(builder, kernel, status);
@@ -3821,6 +3825,5 @@ int regAlloc(IR_Builder& builder, PhyRegPool& regPool, G4_Kernel& kernel)
38213825
gra.verifyRA(liveAnalysis);
38223826
}
38233827

3824-
38253828
return status;
38263829
}

0 commit comments

Comments
 (0)