Skip to content

Commit ba89228

Browse files
bcheng0127igcbot
authored andcommitted
Remove the indirect call variable size checking in RA (#42)
1 parent f2a0962 commit ba89228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visa/RegAlloc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ void PointsToAnalysis::doPointsToAnalysis(FlowGraph& fg)
396396
it++)
397397
{
398398
G4_RegVar* cur = (*it);
399-
indirectVarSize += cur->getDeclare()->getByteSize();
399+
indirectVarSize = cur->getDeclare()->getByteSize();
400+
assert((indirectVarSize <= (unsigned)getGRFSize()* fg.getKernel()->getNumRegTotal()) && "indirected variables' size is larger than GRF file size");
400401
}
401-
assert((indirectVarSize < (unsigned)getGRFSize()* fg.getKernel()->getNumRegTotal()) && "indirected variables' size is larger than GRF file size");
402402
}
403403
#endif
404404

0 commit comments

Comments
 (0)