ir3/ra: Prepare for shared phis

Correctly copy the shared-ness to the parallel copy when the destination
is shared.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
This commit is contained in:
Connor Abbott 2023-02-17 13:50:00 +01:00 committed by Marge Bot
parent a7cae84078
commit 4937172534

View file

@ -470,6 +470,7 @@ create_parallel_copy(struct ir3_block *block)
!phi->srcs[pred_idx]->def)
continue;
phi->srcs[pred_idx]->def = pcopy->dsts[j];
pcopy->dsts[j]->flags |= phi->dsts[0]->flags & IR3_REG_SHARED;
phi->srcs[pred_idx]->flags = pcopy->dsts[j]->flags;
j++;
}