Skip to content

Commit b6abc58

Browse files
weiyu-chensys_zuul
authored and
sys_zuul
committed
Refactor preload checks for spills.
Change-Id: I26fe2df4688f1047f02d68c6a3669c2b13ecc017
1 parent 9b4655e commit b6abc58

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

visa/SpillManagerGMRF.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -904,15 +904,17 @@ inline bool isPartialContext (
904904
bool isInSimdFlow
905905
)
906906
{
907-
if ((ctxt->getPredicate () != NULL && ctxt->opcode() != G4_sel) ||
908-
(isInSimdFlow == true &&
909-
ctxt->isWriteEnableInst() == false &&
910-
region->getElemSize() != 4 ) ) {
907+
if (ctxt->isPartialWrite())
908+
{
911909
return true;
912910
}
913911

914-
if (ctxt->getDst()) {
915-
return false;
912+
if (isInSimdFlow && !ctxt->isWriteEnableInst())
913+
{
914+
if (region->getElemSize() != 4)
915+
{
916+
return true;
917+
}
916918
}
917919

918920
return false;

0 commit comments

Comments
 (0)