Skip to content

Commit 85ec4fc

Browse files
pratikasharsys_zuul
authored andcommitted
Do explicit var split for local live-ranges only.
Change-Id: Iff7bd39702ae3bd20c2048699f861d2f36e4d7a2
1 parent 203f81b commit 85ec4fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

visa/VarSplit.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ void VarSplitPass::findSplitCandidates()
329329
for (auto itemIt = splitVars.begin(); itemIt != splitVars.end(); itemIt++)
330330
{
331331
auto& item = (*itemIt);
332-
if (item.second.numDefs != 1 || !item.second.candidateDef)
332+
if (item.second.numDefs != 1 || !item.second.candidateDef ||
333+
!item.second.isDefUsesInSameBB())
333334
{
334335
item.second.legitCandidate = false;
335336
continue;

0 commit comments

Comments
 (0)