mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
jay: propagate inverse-ballots only locally
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41215>
This commit is contained in:
parent
d7283a25d7
commit
86f19bc983
1 changed files with 6 additions and 2 deletions
|
|
@ -333,12 +333,16 @@ propagate_backwards(jay_function *f)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Fold UGPR->{GPR, FLAG} and UFLAG->FLAG copies coming out of NIR */
|
||||
/* Fold UGPR->{GPR, FLAG} and UFLAG->FLAG copies coming out of NIR.
|
||||
* Inverse-ballots are propagated only locally.
|
||||
*/
|
||||
if (use->type ==
|
||||
(flag ? JAY_TYPE_U1 : canonicalize_for_bit_compare(I->type)) &&
|
||||
I->op != JAY_OPCODE_PHI_DST &&
|
||||
use->op == JAY_OPCODE_MOV &&
|
||||
use->dst.file != J_ADDRESS) {
|
||||
use->dst.file != J_ADDRESS &&
|
||||
(!jay_is_flag(use->dst) ||
|
||||
def_block[jay_base_index(use->dst)] == block->index)) {
|
||||
|
||||
*(flag ? &I->cond_flag : &I->dst) = use->dst;
|
||||
jay_remove_instruction(use);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue