Skip to content

Commit 960ffd7

Browse files
bcheng0127igcbot
authored andcommitted
Remove extra mov in DPAS8x8 splitting
When doing DPAS8x8 splitting for src2 alignment, if src0 and dst are same, there is no need insert extra mov
1 parent 3073047 commit 960ffd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visa/HWConformity.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4516,6 +4516,9 @@ bool HWConformity::checkDPASSrcDstOverlap(INST_LIST_ITER iter, G4_BB *bb) {
45164516
if (dst && !inst->hasNULLDst()) {
45174517
for (int i = 0; i < inst->getNumSrc(); i++) {
45184518
G4_CmpRelation rel = dst->compareOperand(srcs[i], builder);
4519+
if (rel == Rel_eq && i == 0) { // src0 is allowed to be same as dst
4520+
continue;
4521+
}
45194522
if (rel != Rel_disjoint) {
45204523
unsigned int src_l = srcs[i]->getLinearizedStart();
45214524
unsigned int src_r = srcs[i]->getLinearizedEnd();

0 commit comments

Comments
 (0)