mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
jay/opt_propagate: fold uflag copies
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
b9f8f2477e
commit
8e4145948f
1 changed files with 4 additions and 4 deletions
|
|
@ -325,14 +325,14 @@ propagate_backwards(jay_function *f)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Fold UGPR->{GPR, FLAG} copies coming out of NIR */
|
||||
if (!flag &&
|
||||
canonicalize_for_bit_compare(I->type) == use->type &&
|
||||
/* Fold UGPR->{GPR, FLAG} and UFLAG->FLAG copies coming out of NIR */
|
||||
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) {
|
||||
|
||||
I->dst = use->dst;
|
||||
*(flag ? &I->cond_flag : &I->dst) = use->dst;
|
||||
jay_remove_instruction(use);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue