Skip to content

Commit 81c9379

Browse files
bcheng0127sys_zuul
authored andcommitted
Fix the performance regression caused by scalar suppression.
Change-Id: I191762c90a8eee6d8bfbda13af1b864fe3f6c4cc
1 parent 31a0b24 commit 81c9379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

visa/LocalScheduler/LocalScheduler_G4IR.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ bool DDD::hasReadSuppression(G4_INST *prevInst, G4_INST *nextInst, BitSet &liveD
937937
if (currInstRegs[0][0] == nextInstRegs[0][0] && currInstRegs[0][0] != -1 && curInstSimd8 && nextInstSimd8)
938938
{
939939
//No scalar supperssion
940-
if ((!kernel->fg.builder->hasScalarReadSuppression()) || (!isCurrScalar[0] && !isNextScalar[0]))
940+
if (!isCurrScalar[0] && !isNextScalar[0])
941941
{
942942
return true;
943943
}
@@ -950,7 +950,7 @@ bool DDD::hasReadSuppression(G4_INST *prevInst, G4_INST *nextInst, BitSet &liveD
950950
(( curInstSimd8 && nextInstSimd8) || ( !curInstSimd8 && !nextInstSimd8)))
951951
{
952952
//No scalar supperssion
953-
if ((!kernel->fg.builder->hasScalarReadSuppression()) || (!isCurrScalar[1] && !isNextScalar[1]))
953+
if (!isCurrScalar[1] && !isNextScalar[1])
954954
{
955955
return true;
956956
}
@@ -959,7 +959,7 @@ bool DDD::hasReadSuppression(G4_INST *prevInst, G4_INST *nextInst, BitSet &liveD
959959
if (currInstRegs[0][2] == nextInstRegs[0][2] && currInstRegs[0][2] != -1 && curInstSimd8 && nextInstSimd8)
960960
{
961961
//No scalar supperssion
962-
if ((!kernel->fg.builder->hasScalarReadSuppression()) || (!isCurrScalar[2] && !isNextScalar[2]))
962+
if (!isCurrScalar[2] && !isNextScalar[2])
963963
{
964964
return true;
965965
}

0 commit comments

Comments
 (0)