Skip to content

Commit 188c4d6

Browse files
gkluczekgfxbot
authored andcommitted
Extending copy propagation to include IntToFp and FpToInt cases
Change-Id: Ie386e158d9cf9e909ecf9e0c5bc8810276781219
1 parent ebbb4a8 commit 188c4d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

visa/Gen4_IR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ bool G4_INST::canPropagateTo(G4_INST *useInst, Gen4_Operand_Number opndNum, MovT
20472047
// such as add, cmp, and mul, when types of all source operands could be
20482048
// consistent.
20492049
if (!(useInst->isRawMov() && dstType == useType) &&
2050+
!(MT == Copy && propType == useType) &&
20502051
((IS_FTYPE(dstType) && (IS_TYPE_INT(propType) || IS_VINTTYPE(propType))) ||
20512052
(IS_TYPE_INT(dstType) && (IS_FTYPE(propType) || IS_VFTYPE(propType)))))
20522053
{

0 commit comments

Comments
 (0)