Skip to content

Commit f198435

Browse files
pratikashargfxbot
authored andcommitted
Ease remat cost heuristic
Change-Id: Ia310f3e24628511cb9987eecd57c9ceb4be9a696
1 parent 4444ee2 commit f198435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

visa/Rematerialization.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,8 @@ namespace vISA
761761
{
762762
G4_SrcRegRegion* srcRgn = uniqueDefInst->getSrc(i)->asSrcRegRegion();
763763

764-
if (srcRgn->getTopDcl()->getNumElems() > 1)
764+
if (srcRgn->getTopDcl()->getNumElems() > 1 &&
765+
!src->isSpilled())
765766
{
766767
// Extending non-scalar operands can be expensive
767768
return false;

0 commit comments

Comments
 (0)