Skip to content

Commit d5d2bc3

Browse files
bcheng0127sys_zuul
authored andcommitted
[Autobackout][FuncReg]Revert of change: 50b9cb8
Add assert for the case where variable size is larger than GRF file size. Change-Id: Iba47f4fa7045c25b440def18f649bb46cbcf606c
1 parent 35f6b2f commit d5d2bc3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

visa/RegAlloc.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -385,22 +385,6 @@ void PointsToAnalysis::doPointsToAnalysis(FlowGraph& fg)
385385
}
386386
}
387387

388-
#ifndef NDEBUG
389-
for (unsigned i = 0; i < numAddrs; i++)
390-
{
391-
REGVAR_VECTOR& vec = pointsToSets[addrPointsToSetIndex[i]];
392-
unsigned indirectVarSize = 0;
393-
for (REGVAR_VECTOR::iterator it = vec.begin();
394-
it != vec.end();
395-
it++)
396-
{
397-
G4_RegVar* cur = (*it);
398-
indirectVarSize += cur->getDeclare()->getByteSize();
399-
}
400-
assert((indirectVarSize < (unsigned)getGRFSize()* fg.getKernel()->getNumRegTotal()) && "indirected variables' size is larger than GRF file size");
401-
}
402-
#endif
403-
404388
#ifdef DEBUG_VERBOSE_ON
405389
for (unsigned int i = 0; i < numBBs; i++)
406390
{

0 commit comments

Comments
 (0)