We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93463de commit 50b9cb8Copy full SHA for 50b9cb8
visa/RegAlloc.cpp
@@ -385,6 +385,22 @@ void PointsToAnalysis::doPointsToAnalysis(FlowGraph& fg)
385
}
386
387
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
+
404
#ifdef DEBUG_VERBOSE_ON
405
for (unsigned int i = 0; i < numBBs; i++)
406
{
0 commit comments