r300/compiler: Fix copy propigation for some presub instructions

This commit is contained in:
Tom Stellard
2010-09-06 15:31:07 -07:00
parent 564653b9f1
commit 66b1e716fb
@@ -191,7 +191,7 @@ static void copy_propagate(struct radeon_compiler * c, struct rc_instruction * i
/* It is possible to do copy propigation in this situation,
* just not right now, see peephole_add_presub_inv() */
if (inst->U.I.PreSub.Opcode != RC_PRESUB_NONE &&
if (inst_mov->U.I.PreSub.Opcode != RC_PRESUB_NONE &&
info->NumSrcRegs > 2) {
return;
}