mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 09:38:20 +02:00
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:
parent
66f2a35954
commit
1b491cc51a
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue