ir3/array_to_ssa: initialize ir3_instruction::data

This should have already been NULL because this looks like the first time
this field is used, but that's a bit fragile.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40480>
This commit is contained in:
Rhys Perry 2026-03-17 14:43:35 +00:00 committed by Marge Bot
parent 4f0fb5784f
commit 54af9431d1

View file

@ -212,8 +212,10 @@ ir3_array_to_ssa(struct ir3 *ir)
foreach_block (block, &ir->block_list) {
foreach_instr (instr, &block->instr_list) {
if (instr->opc == OPC_META_PHI)
if (instr->opc == OPC_META_PHI) {
instr->data = NULL;
continue;
}
foreach_dst (reg, instr) {
if ((reg->flags & IR3_REG_ARRAY) && !reg->tied) {