mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01:00
pan/bi: Allow @rNULL with tied operands
Will enable DCE of atomics. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>
This commit is contained in:
parent
111255512a
commit
d31df8416b
1 changed files with 3 additions and 2 deletions
|
|
@ -330,9 +330,10 @@ bi_pack_tuple(bi_clause *clause, bi_tuple *tuple, bi_tuple *prev, bool first_tup
|
|||
if (tuple->add) {
|
||||
bi_instr *add = tuple->add;
|
||||
|
||||
bool sr_write = bi_opcode_props[add->op].sr_write;
|
||||
bool sr_write = bi_opcode_props[add->op].sr_write &&
|
||||
!bi_is_null(add->dest[0]);
|
||||
|
||||
if (sr_read) {
|
||||
if (sr_read && !bi_is_null(add->src[0])) {
|
||||
assert(add->src[0].type == BI_INDEX_REGISTER);
|
||||
clause->staging_register = add->src[0].value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue