aco/optimizer: don't remove label_extract for splits

No Foz-DB changes, but will become nessecary with dword first splits.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39532>
This commit is contained in:
Georg Lehmann 2025-11-26 18:17:26 +01:00 committed by Marge Bot
parent 66f2a35954
commit 1b491cc51a

View file

@ -1998,6 +1998,10 @@ remove_operand_extract(opt_ctx& ctx, aco_ptr<Instruction>& instr)
if (instr->isSALU() || instr->isVALU())
return;
/* There might be dead splits created by emit_split_vector. */
if (instr->opcode == aco_opcode::p_split_vector)
return;
for (unsigned i = 0; i < instr->operands.size(); i++) {
Operand op = instr->operands[i];
if (!op.isTemp())