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 a5847dc commit decc836Copy full SHA for decc836
visa/VarSplit.cpp
@@ -247,6 +247,12 @@ void VarSplitPass::findSplitCandidates()
247
auto numRows = (src->getRightBound() - src->getLeftBound() + G4_GRF_REG_NBYTES - 1) / G4_GRF_REG_NBYTES;
248
auto regOff = src->getRegOff();
249
250
+ if (item.first->getByteSize() < src->getRightBound())
251
+ {
252
+ item.second.legitCandidate = false;
253
+ break;
254
+ }
255
+
256
if (numRows == 1)
257
{
258
if (item.second.ag == VarProperties::AccessGranularity::Unknown)
0 commit comments