Skip to content

Commit a69efe8

Browse files
weiyu-chensys_zuul
authored andcommitted
re-eanble read-modify-write for spills not inside divergent control flow.
Change-Id: Ifc7b20525b7bfb5035779c5095b1d58a55209a77
1 parent fb7d231 commit a69efe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/SpillManagerGMRF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,7 @@ SpillManagerGRF::shouldPreloadSpillRange(
25352535

25362536
if (isPartialRegion(spilledRangeRegion, execSize) ||
25372537
isUnalignedRegion(spilledRangeRegion, execSize) ||
2538-
instContext->isPartialWriteForSpill(parentBB->isDivergent()))
2538+
instContext->isPartialWriteForSpill(!parentBB->isAllLaneActive()))
25392539
{
25402540
#if 0
25412541
// special check for scalar variables: no need for pre-fill if instruction is not predicated

0 commit comments

Comments
 (0)