From 4937172534a71382cfc437b74ae80376ef65985c Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 17 Feb 2023 13:50:00 +0100 Subject: [PATCH] ir3/ra: Prepare for shared phis Correctly copy the shared-ness to the parallel copy when the destination is shared. Part-of: --- src/freedreno/ir3/ir3_merge_regs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/ir3/ir3_merge_regs.c b/src/freedreno/ir3/ir3_merge_regs.c index 7de6aaa4b18..fd3de619a1f 100644 --- a/src/freedreno/ir3/ir3_merge_regs.c +++ b/src/freedreno/ir3/ir3_merge_regs.c @@ -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++; }