Module: Mesa
Branch: main
Commit: e36235e6d530e037cffd189d48fb6ae88f5dd613
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e36235e6d530e037cffd189d48fb6ae88f5dd613

Author: Georg Lehmann <dadschoo...@gmail.com>
Date:   Fri Jan 12 21:54:03 2024 +0100

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.kris...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27046>

---

 src/amd/compiler/aco_optimizer_postRA.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_optimizer_postRA.cpp 
b/src/amd/compiler/aco_optimizer_postRA.cpp
index 5978e7c4b46..cee1fd0cb57 100644
--- a/src/amd/compiler/aco_optimizer_postRA.cpp
+++ b/src/amd/compiler/aco_optimizer_postRA.cpp
@@ -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;

Reply via email to