aco: reassign split vector to SOPC

Foz-DB Navi21:
Totals from 2669 (3.42% of 78112) affected shaders:
Instrs: 3570360 -> 3562026 (-0.23%)
CodeSize: 19049784 -> 19017092 (-0.17%)
Latency: 25343555 -> 25337767 (-0.02%); split: -0.03%, +0.00%
InvThroughput: 6191344 -> 6191079 (-0.00%); split: -0.01%, +0.00%
VClause: 90803 -> 90802 (-0.00%)
SClause: 114858 -> 114842 (-0.01%); split: -0.03%, +0.01%
Copies: 269287 -> 260999 (-3.08%)

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27046>
This commit is contained in:
Georg Lehmann 2024-01-12 21:54:03 +01:00 committed by Marge Bot
parent 94d96dac60
commit e36235e6d5

View file

@ -575,7 +575,7 @@ unsigned
num_encoded_alu_operands(const aco_ptr<Instruction>& instr)
{
if (instr->isSALU()) {
if (instr->isSOP2())
if (instr->isSOP2() || instr->isSOPC())
return 2;
else if (instr->isSOP1())
return 1;