ir3: Reset num when creating parallel copies

It may have been overwritten when folding in constants.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
This commit is contained in:
Connor Abbott
2023-10-31 18:52:07 +01:00
committed by Marge Bot
parent c00e06bc62
commit 468f070a91

View File

@@ -472,6 +472,7 @@ create_parallel_copy(struct ir3_block *block)
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;
phi->srcs[pred_idx]->num = INVALID_REG;
j++;
}
assert(j == phi_count);