Skip to content

Commit 9aabce6

Browse files
gkluczekigcbot
authored andcommitted
Corner case in LVN for src and dst
Corner case in LVN for src and dst.
1 parent 93f6411 commit 9aabce6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

visa/Passes/LVN.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ bool LVN::canReplaceUses(INST_LIST_ITER inst_it, UseList &uses,
219219
}
220220
}
221221

222+
if (useInst->getNumDst() && useInst->getDst() && !useInst->hasNULLDst() &&
223+
useInst->getDst()->getTopDcl() == lvnDstTopDcl) {
224+
canReplace = false;
225+
break;
226+
}
227+
222228
// Compute a single positive stride if exists.
223229
unsigned int use_hs = 0;
224230
{

0 commit comments

Comments
 (0)