aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-06-30 16:16:18 +0100
committerMarge Bot <[email protected]>2020-07-13 14:11:50 +0000
commit15a17fddad6123efc4da1012f8bc9fe3acf87ac4 (patch)
treef2fc139e7546612f30bcf9b62ebbe430fb0f7cd6 /src/amd
parentec9920e72b0161642eccb0a2506eccc5b2c99a92 (diff)
aco: add 32-bit integer addition to can_swap_operands
fossil-db (Navi): Totals from 167 (0.12% of 135946) affected shaders: CodeSize: 484892 -> 482628 (-0.47%) Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5695>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/compiler/aco_optimizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp
index 214e675cd12..ab38821479e 100644
--- a/src/amd/compiler/aco_optimizer.cpp
+++ b/src/amd/compiler/aco_optimizer.cpp
@@ -524,6 +524,10 @@ bool can_swap_operands(aco_ptr<Instruction>& instr)
return false;
switch (instr->opcode) {
+ case aco_opcode::v_add_u32:
+ case aco_opcode::v_add_co_u32:
+ case aco_opcode::v_add_co_u32_e64:
+ case aco_opcode::v_add_i32:
case aco_opcode::v_add_f16:
case aco_opcode::v_add_f32:
case aco_opcode::v_mul_f16: