mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965: Also do constant propagation for the second operand of CMP.
We could do the first operand as well by flipping the comparison, but this covered several CMPs in code I was looking at.
This commit is contained in:
parent
dcd0261aff
commit
634abbf7b2
1 changed files with 5 additions and 0 deletions
|
|
@ -2607,6 +2607,11 @@ fs_visitor::propagate_constants()
|
|||
scan_inst->src[1] = inst->src[0];
|
||||
}
|
||||
break;
|
||||
case BRW_OPCODE_CMP:
|
||||
if (i == 1) {
|
||||
scan_inst->src[i] = inst->src[0];
|
||||
progress = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue